CalibrateCamera2 broken in opencv 2.2 (and svn) python bindings (Bug #821)


Added by Attila Bergou about 14 years ago. Updated over 13 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:calibration, 3d
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision c02095ae
Added by Andrey Kamaev almost 12 years ago

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

Also available in: Atom PDF