CalibrateCamera2 broken in opencv 2.2 (and svn) python bindings (Bug #821)
Description
I tried to execute the python code:
err, K, D, rvecs, tvecs = _cv.calibrateCamera(objpts, imgpts, shape, K, D, rvecs, tvecs, flags)
and
_cv.CalibrateCamera2(objpts, imgpts, pointcounts, shape, K, D, rvecs, tvecs, flags)
In either case I get errors back. For calibrateCamera (which I assume link to C++ bindings), I get:
SystemError: error return without exception set
while for CalibrateCamera2 (I assume these go to the C interface), I get:
TypeError: Argument 'pointCounts' must be CvMat
(it is not possible to pass this argument as a numpy array?)
Thanks!
Associated revisions
Merge pull request #821 from taka-no-me:contributing
History
Updated by Vadim Pisarevsky over 13 years ago
Use the newer cv2.calibrateCamera() (works correctly in the latest OpenCV trunk). See https://code.ros.org/svn/opencv/trunk/opencv/samples/python2/calibrate.py
- Status changed from Open to Done
- (deleted custom field) set to fixed