Skip to content

Commit

Permalink
User calib fixes (#1114)
Browse files Browse the repository at this point in the history
* Updated user calib boards to be compatible with OpenCV <=4.6.0 (legacy patterns)

* Added minMarkers parameter to Charuco board detection to increase the number of detected corners also in visualization for the user. This change mirrors what has been done for actual calibration in depthai_calibration so the visuals and actual detection are now identical.
  • Loading branch information
CenekAlbl authored Sep 8, 2023
1 parent dde0ba5 commit 506df8f
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def detect_markers_corners(self, frame):
rejectedCorners=rejectedImgPoints)
if len(marker_corners) <= 0:
return marker_corners, ids, None, None
ret, charuco_corners, charuco_ids = cv2.aruco.interpolateCornersCharuco(marker_corners, ids, frame, self.charuco_board)
ret, charuco_corners, charuco_ids = cv2.aruco.interpolateCornersCharuco(marker_corners, ids, frame, self.charuco_board, minMarkers = 1)
return marker_corners, ids, charuco_corners, charuco_ids

def draw_markers(self, frame):
Expand Down
Binary file modified charuco_boards_user_calib/charuco_24inch_13x7.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_28inch_15x8.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_32inch_17x9.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_36inch_19x11.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_42inch_22x12.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_50inch_27x15.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_55inch_30x17.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_65inch_35x20.pdf
Binary file not shown.
Binary file modified charuco_boards_user_calib/charuco_75inch_41x23.pdf
Binary file not shown.

0 comments on commit 506df8f

Please sign in to comment.