March 2020
Intermediate to advanced
366 pages
9h 8m
English
The process_frame method is responsible for doing the hard work of the calibration technique, and we will collect images and object points by using the following steps:
def process_frame(self, frame): """Processes each frame""" # if we are not recording, just display the frame if not self.recording: return frame # else we're recording img_gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) .astype(np.uint8) if self.record_cnt < self.record_min_num_frames: ret, corners = cv2.findChessboardCorners( img_gray, self.chessboard_size, None)
The cv2.findChessboardCorners ...
Read now
Unlock full access