Skip to content

Commit

Permalink
add missing opts init
Browse files Browse the repository at this point in the history
  • Loading branch information
MRo47 committed May 22, 2024
1 parent cc13e23 commit d703ddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions camera_calibration/src/camera_calibration/calibrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ def mk_object_points(self, boards, use_board_size = False):
if self.pattern == Patterns.ChArUco:
opts = [board.charuco_board.chessboardCorners for board in boards]
return opts
opts = []
for b in boards:
num_pts = b.n_cols * b.n_rows
opts_loc = numpy.zeros((num_pts, 1, 3), numpy.float32)
Expand Down

0 comments on commit d703ddc

Please sign in to comment.