Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error: Bad argument (Unknown array type) in cvarrToMat

Hi Everyone

I am trying to run this calibration program :

http://fossies.org/linux/opencv/samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp

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

OpenCV Error: Bad argument (Unknown array type) in cvarrToMat

Hi Everyone

I am trying to run this calibration program :

http://fossies.org/linux/opencv/samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp

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

cvarrToMat

Abort trap: 6

6

I really appreciate any help