non planar Calibration

asked 2016-12-02 14:35:02 -0500

I have a set of corresponded 2D-3D points and i want to calibrate my camera based on these points. the opencv function gives me the following error since my points are not planar. OpenCV Error: Bad argument (For non-planar calibration rigs the initial intrinsic matrix must be specified) in cvCalibrateCamera2, file /build/opencv-SviWsf/opencv-, line 1592

Does anyone knows any solution to calibrate my camera? Thank you so much

edit retag flag offensive close merge delete


Pick an initial guess for the camera matrix. If you aren't too far off, it should optimize to the correct values.

Tetragramm gravatar imageTetragramm ( 2016-12-02 17:04:38 -0500 )edit

Interesting, I didn't know it could be possible to use non planar points with the OpenCV calibration method. Can you report here if you can solve your issue using the suggestion above?

Initial guess for the principal point is easy, it is the image size divided by 2, for the focal length maybe the value 700 could do the job?

Eduardo gravatar imageEduardo ( 2016-12-03 17:26:31 -0500 )edit