def get_capture_and_calibration_image_video2(): video = VideoCapture(video_sources.video_2) calibration_image = video.read_at_pos(225) video.set_pos(0) # calibration_image[480:553, 650:720] # strong ellipse return video, calibration_image[480:720, 0:1280] # strong ellipse and parts (connected contacts)
def get_capture_and_calibration_image_video6(): video = VideoCapture(video_sources.video_6) calibration_image = video.read_at_pos(65) video.set_pos(0) return video, calibration_image