Esempio n. 1
0
def get_camera_distancing_live(cameras: str = ""):
    """
    Returns a report with live information about the social distancing infractions
    detected in the cameras <cameras>.
    """
    cameras = get_cameras(cameras)
    for camera in cameras:
        validate_camera_existence(camera)
    return SocialDistancingMetric.get_live_report(cameras)
def get_camera_face_mask_detections_live(areas: str = ""):
    """
    Returns a report with live information about the social distancing infractions
    detected in the areas <areas>.
    """
    areas = get_areas(areas)
    for area in areas:
        validate_area_existence(area)
    cameras = get_cameras_for_areas(areas)
    return SocialDistancingMetric.get_live_report(cameras)