Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cpp-tutorial-pnp_registration throw error

Hi everyone,

I am trying to use cpp-tutorial-pnp_registration in opencv sample code whose location is /home/*/opencv-3.2.0/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp

I just try to use opencv original data resized_IMG_3875.JPG and box.ply to get textured 3D model (yml file), however, opencv throw the following error for me:

--------------------------------------------------------------------------
This program shows how to create your 3D textured model. 
Usage:
./cpp-tutorial-pnp_registration
--------------------------------------------------------------------------

init done
Click the box corners ...
Waiting ...
COMPUTING POSE ...
OpenCV Error: Assertion failed (npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F))) in solvePnP, file /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/calib3d/src/solvepnp.cpp, line 63
terminate called after throwing an instance of 'cv::Exception'
  what():  /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/calib3d/src/solvepnp.cpp:63: error: (-215) npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F)) in function solvePnP

Aborted (core dumped)

I am not sure what the problem is and could you give me some idea? Any idea will be appreciate.

Thanks in advance.

cpp-tutorial-pnp_registration throw error

Hi everyone,

I am trying to use cpp-tutorial-pnp_registration in opencv sample code whose location is /home/*/opencv-3.2.0/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp

I just try to use opencv original data resized_IMG_3875.JPG and box.ply to get textured 3D model (yml file), however, opencv throw the following error for me:

--------------------------------------------------------------------------
This program shows how to create your 3D textured model. 
Usage:
./cpp-tutorial-pnp_registration
--------------------------------------------------------------------------

init done
Click the box corners ...
Waiting ...
COMPUTING POSE ...
OpenCV Error: Assertion failed (npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F))) in solvePnP, file /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/calib3d/src/solvepnp.cpp, line 63
terminate called after throwing an instance of 'cv::Exception'
  what():  /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/calib3d/src/solvepnp.cpp:63: error: (-215) npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F)) in function solvePnP

Aborted (core dumped)

I am not sure what the problem is and could you give me some idea? Any idea will be appreciate.

Thanks in advance.

My screen shot is shown as following: image description

cpp-tutorial-pnp_registration throw error

Hi everyone,

I am trying to use cpp-tutorial-pnp_registration in opencv sample code whose location is /home/*/opencv-3.2.0/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp

I just try to use opencv original data resized_IMG_3875.JPG and box.ply to get textured 3D model (yml file), however, opencv throw the following error for me:

--------------------------------------------------------------------------
This program shows how to create your 3D textured model. 
Usage:
./cpp-tutorial-pnp_registration
--------------------------------------------------------------------------

init done
Click the box corners ...
Waiting ...
COMPUTING POSE ...
OpenCV Error: Assertion failed (npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F))) in solvePnP, file /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/calib3d/src/solvepnp.cpp, line 63
terminate called after throwing an instance of 'cv::Exception'
  what():  /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/calib3d/src/solvepnp.cpp:63: error: (-215) npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F)) in function solvePnP

Aborted (core dumped)

I am not sure what the problem is and could you give me some idea? Any idea will be appreciate.

Thanks in advance.

My screen shot is shown as following: image description