OpenCV Error: Bad argument (Unknown array type) in cvarrToMat
Hi Everyone
I am trying to run this calibration program :
http://fossies.org/linux/opencv/sampl...
I already compiled it successfully using CMake , however , when I try to run it with a number of checkerboard snapshots (around 13 photos) to calibrate my IPhone camera : The program goes very well but gets crashed at the line # 362
Here is the output of I got in my terminal :
This is a camera calibration sample.
Usage: calibration configurationFile
Near the sample file you'll find the configuration file, which has detailed help of how to edit it. It may be any OpenCV supported file format XML/YAML.
OpenCV Error: Bad argument (Unknown array type) in cvarrToMat, file /tmp/opencv-EKIKs8/opencv-2.4.9/modules/core/src/matrix.cpp, line 698
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv-EKIKs8/opencv-2.4.9/modules/core/src/matrix.cpp:698: error: (-5) Unknown array type in function cvarrToMat
Abort trap: 6
I really appreciate any help
I checked if the current 2.4 branch has an updated version but it seems to be the same as the fossies one. Basically the error states that one of the input elements of the
initUndistortRectifyMap()
is empty or non existing. So the code successfully grabs all your calibration images but then does something wrong. Can you run a debug session on your side and check if all input arguments of that function actually have values?Hello! I faced same problems. How can you solve them? I tried everything in google...
I am also having the same problem :( I am using an 11x4 asymmetric circles grid. No clue what's going wrong.