Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error when trying to run cpp-tutorial-pnp_detection

Hello,

I'm trying to run this tutorial: http://docs.opencv.org/3.0-beta/doc/tutorials/calib3d/real_time_pose/real_time_pose.html#realtimeposeestimation

with OpenCV 3.0 and I get the following error:

OpenCV Error: Assertion failed (channels() == CV_MAT_CN(dtype)) in copyTo, file /home/pmousoul/Downloads/opencv3/opencv/modules/core/src/copy.cpp, line 257
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/pmousoul/Downloads/opencv3/opencv/modules/core/src/copy.cpp:257: error: (-215) channels() == CV_MAT_CN(dtype) in function copyTo

Aborted (core dumped)

Can someone please tell me what I'm I doing wrong?

Thank you for your time, Cheers, Panos

error when trying to run cpp-tutorial-pnp_detection

Hello,

I'm trying to run this tutorial: http://docs.opencv.org/3.0-beta/doc/tutorials/calib3d/real_time_pose/real_time_pose.html#realtimeposeestimation

with OpenCV 3.0 and I get the following error:

OpenCV Error: Assertion failed (channels() == CV_MAT_CN(dtype)) in copyTo, file /home/pmousoul/Downloads/opencv3/opencv/modules/core/src/copy.cpp, line 257
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/pmousoul/Downloads/opencv3/opencv/modules/core/src/copy.cpp:257: error: (-215) channels() == CV_MAT_CN(dtype) in function copyTo

Aborted (core dumped)

Can someone please tell me what I'm I doing wrong?

edit: My OpenCV 3.0 version is: OpenCV version: 3.0.0-dev OpenCV VCS version: 3.0.0-699-gb3ac274

Thank you for your time, Cheers, Panos