Code: Select all
calibration_pattern = cv2.imread('circles/IMG_9341.JPG')
gray_pattern = cv2.cvtColor(calibration_pattern, cv2.COLOR_BGR2GRAY)
# Define chessboard size and criteria
pattern_size = (4, 11) # Change accordingly based on your calibration pattern
# Find circle centers on the calibration pattern
ret, corners = cv2.findCirclesGrid(gray_pattern, pattern_size, flags = cv2.CALIB_CB_ASYMMETRIC_GRID + cv2.CALIB_CB_CLUSTERING)
Beispielbild
Ich habe versucht, die Muster zu ändern, markiert sogar andere Bilder, aber es ist immer falsch.
Mobile version