Skip to content

Commit

Permalink
fix #503: (#545)
Browse files Browse the repository at this point in the history
set_cammodel of StereoCalibrator need to override the method of parent class

fix related to opencv/opencv#11085:
unlike cv2.calibrate, the cv2.fisheye.calibrate method expects float64 points and in an array with an extra dimension. The same for cv2.stereoCalibrate vs cv2.fisheye.stereoCalibrate

Trimmed whitespace at line endings
  • Loading branch information
soeroesg authored and Joshua Whitley committed Dec 11, 2020
1 parent c88b33b commit 5883b6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion camera_calibration/src/camera_calibration/calibrator.py
Expand Up @@ -1117,7 +1117,9 @@ def cal_fromcorners(self, good):
self.l.cal_fromcorners(lcorners)
self.r.cal_fromcorners(rcorners)

(lipts, ripts, _, _, boards) = zip(*good)
lipts = [ l for (l, _, _) in good ]
ripts = [ r for (_, r, _) in good ]
boards = [ b for (_, _, b) in good ]

opts = self.mk_object_points(boards, True)

Expand Down

0 comments on commit 5883b6d

Please sign in to comment.