I get an error during the camera callibration

asked 2016-12-01 03:27:10 -0600

Prototype gravatar image

This is the error I get when I run the sample calibration code from the official documentation link samples/cpp/tutorial_code/calib3d/camera_calibration/

what(): /home/manohar/opencv-3.1.0/modules/core/src/convert.cpp:5475: error: (-215) src.size == dst.size && src.channels() == dst.channels() in function cvConvertScale

I entered the correct number of squares and other required details. Please help me with this, Thanks in advance.

edit retag flag offensive close merge delete

Comments

You have to provide at least stack trace, OpenCV version and platform, or add some console messages to the program to find function causing this error. BTW, you can try new interactive-calibrationtool: https://github.com/opencv/opencv/tree...

mshabunin gravatar imagemshabunin ( 2016-12-01 15:03:25 -0600 )edit

@mshabunin Thanks a lot for the link. There are too many files and I am new to coding. If it's not too much to ask ,could you please give me onstructions as to how to use it. There are too many files and I don't know which one to use.

Prototype gravatar imagePrototype ( 2016-12-02 11:14:28 -0600 )edit

To use interactive-calibration tool, you can simply build OpenCV library with opencv_contrib, the application will be located here: <build>/bin/opencv_interactive-calibration.

If you choose to debug camera_calibration tutorial, you should build OpenCV with -DCMAKE_BUILD_TYPE=Debug -DBUILD_EXAMPLES=ON cmake option, then run <build>/bin/tutorial_camera_calibration under debugger and wait until it crash, then check stacktrace to see what happened.

mshabunin gravatar imagemshabunin ( 2016-12-05 05:50:06 -0600 )edit