Problem with OpenCV calibration module
I have been spending some time to get my camera calibration working using OpenCV module as documented here. In particular, I have 3 questions regarding this issue:
When using camera input by setting certain value in XML configuration file, I got it working but after the calibration, I got a worse(than the original input) output remapped image. Are there any configuration that I am not aware of?
Is the following configuration important, if so, should I measure in mm scale:
<!-- The size of a square in some user defined metric system (pixel, millimeter)--> <Square_Size>50</Square_Size>
When using image list or recorded video stream, I didn't get any working? Is there any trick, perhaps? It didn't even detect the corners in my chessboard calibration target. When using image list, it runs the image sequences, however, without detecting corners and eventually I received the following error:
OpenCV Error: Bad argument (Unknown array type) in cvarrToMat, file /tmp/buildd/ros-fuerte-opencv2-2.4.2-1precise-20130312-1306/modules/core/src/matrix.cpp, line 697 terminate called after throwing an instance of 'cv::Exception' what(): /tmp/buildd/ros-fuerte-opencv2-2.4.2-1precise-20130312-1306/modules/core/src/matrix.cpp:697: error: (-5) Unknown array type in function cvarrToMat
When using recorded video stream, I always get the following error:
OpenCV Error: Parsing error (output.avi(0): Too long string or a last string w/o newline) in icvXMLSkipSpaces
Thanks in advance.
Hi Alfa_80, can I ask how you have used a list of images for calibration? I am having the same errors as you. i have followed the answer below with no luck. any help would be great. Thanks
It's long ago, I hope still remember. Actually, you just need to define some parameters in the default.xml. There is an image list there that you can set.
did anyone find a solution to this, i'm having similar issues. I've been able to successfully calibrate a camera with mild distortion but when using the ar drones wide angle lens it throws the following error: OpenCV Error: Bad argument (Unknown array type) in cvarrToMat, file /home/james-tt/Dropbox/Term_2/Final_Project/OpenCv/opencv-2.4.9/modules/core/src/matrix.cpp, line 698 terminate called after throwing an instance of 'cv::Exception' what(): /home/james-tt/Dropbox/Term_2/Final_Project/OpenCv/opencv-2.4.9/modules/core/src/matrix.cpp:698: error: (-5) Unknown array type in function cvarrToMat