-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
SolvePnPRansac Fails because calls to solvePnP with less than 6 points #17799
Copy link
Copy link
Closed
Labels
bugcategory: calib3dconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete
Milestone
Description
System information (version)
- OpenCV => ❔
- Operating System / Platform => ❔
- Compiler => ❔
Detailed description
solvePnPRansac calls solvePnP wihch calls cvFIndExtrinsicCameraParams2 using less than 6 points.
Then, the following error is raised:
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.3.0) /home/salinas/Libraries/opencv/opencv-4.3.0/modules/calib3d/src/calibration.cpp:1173: error: (-2:Unspecified error) in function 'void cvFindExtrinsicCameraParams2(const CvMat*, const CvMat*, const CvMat*, const CvMat*, CvMat*, CvMat*, int)'
DLT algorithm needs at least 6 points for pose estimation from 3D-2D point correspondences. (expected: 'count >= 6'), where
'count' is 5
must be greater than or equal to
'6' is 6
Steps to reproduce
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues,
answers.opencv.org, Stack Overflow, etc and have not found solution - I updated to latest OpenCV version and the issue is still there
- There is reproducer code and related data files: videos, images, onnx, etc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcategory: calib3dconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete