Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV4Android Camera Calibration sample error

I tried to run the Camera Calibration sample code from OpenCV4Android 3.0.0, Im using android studio. When I run the apps on my android devices the sample code can detect asymetric circle grid pattern and I take 10-20 captures from it. When I try to calibrate the captured pictures the application will exit and show Unfortunately "apps name" has stopped.

Logcat

> 03-07 20:54:55.420 17202-17713/org.opencv.samples.cameracalibration E/cv::error(): OpenCV Error: Assertion failed (_tvec.total() * _tvec.channels() == 3 && (_tvec.depth() == CV_32F || _tvec.depth() == CV_64F)) in void cv::fisheye::projectPoints(cv::InputArray, cv::OutputArray, cv::InputArray, cv::InputArray, cv::InputArray, cv::InputArray, double, cv::OutputArray), file /home/maksim/workspace/android-pack/opencv/modules/calib3d/src/fisheye.cpp, line 77
03-07 20:54:55.420 17202-17713/org.opencv.samples.cameracalibration E/org.opencv.calib3d: calib3d::projectPoints_11() caught cv::Exception: /home/maksim/workspace/android-pack/opencv/modules/calib3d/src/fisheye.cpp:77: error: (-215) _tvec.total() * _tvec.channels() == 3 && (_tvec.depth() == CV_32F || _tvec.depth() == CV_64F) in function void cv::fisheye::projectPoints(cv::InputArray, cv::OutputArray, cv::InputArray, cv::InputArray, cv::InputArray, cv::InputArray, double, cv::OutputArray)
03-07 20:54:55.420 17202-17713/org.opencv.samples.cameracalibration W/dalvikvm: threadid=13: thread exiting with uncaught exception (group=0x4197ee48)