def try_approximate_corners_blur(self, board_dims, sharpness_threshold):
sharpness = cv2.Laplacian(self.frame, cv2.CV_64F).var()
if sharpness < sharpness_threshold:
return False
found, corners = cv2.findChessboardCorners(self.frame, board_dims)
self.current_image_points = corners
return found
评论列表
文章目录