Android Sample camera calibration assertion failed

asked 2015-11-15 12:48:28 -0500

Dago gravatar image

updated 2015-11-15 13:03:09 -0500

Library OpenCV 3.0.0 (Eclipse + NDK),

  1. I imported camera calibration sample.
  2. I captured OpenCV asymetric circles grid ( 20 times )
  3. After press calibrate, application crashed with following error (i tried it on HTC Desire X 32bit android 4.1 and Desire 820 64bit android 5.0)

    Caused by: CvException [org.opencv.core.CvException: 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) 11-15 19:38:31.710: E/AndroidRuntime(9232): ] 11-15 19:38:31.710: E/AndroidRuntime(9232): at org.opencv.calib3d.Calib3d.projectPoints_1(Native Method) 11-15 19:38:31.710: E/AndroidRuntime(9232): at org.opencv.calib3d.Calib3d.projectPoints(Calib3d.java:88) 11-15 19:38:31.710: E/AndroidRuntime(9232): at org.opencv.samples.cameracalibration.CameraCalibrator.computeReprojectionErrors(CameraCalibrator.java:111) 11-15 19:38:31.710: E/AndroidRuntime(9232): at org.opencv.samples.cameracalibration.CameraCalibrator.calibrate(CameraCalibrator.java:72) 11-15 19:38:31.710: E/AndroidRuntime(9232): at org.opencv.samples.cameracalibration.CameraCalibrationActivity$2.doInBackground(CameraCalibrationActivity.java:169) 11-15 19:38:31.710: E/AndroidRuntime(9232): at org.opencv.samples.cameracalibration.CameraCalibrationActivity$2.doInBackground(CameraCalibrationActivity.java:1)

Other samples works well. A few months ago i tried this on Ubuntu and OpenCV 2,4 without any problem.

Can somebody help please?

edit retag flag offensive close merge delete

Comments

Hey @Dago did you manage to find a solution for this.

helios0x92 gravatar imagehelios0x92 ( 2016-02-16 02:55:32 -0500 )edit