Skip to content

Commit bb925fe

Browse files
committed
Merge pull request opencv#10879 from StevenPuttemans:fix_10650
2 parents 1dbdb1c + 6f4e35c commit bb925fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_detection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ int main(int argc, char *argv[])
222222
Mat inliers_idx;
223223
vector<Point2f> list_points2d_inliers;
224224

225-
if(good_matches.size() > 0) // None matches, then RANSAC crashes
225+
if(good_matches.size() >= 4) // OpenCV requires solvePnPRANSAC to minimally have 4 set of points
226226
{
227227

228228
// -- Step 3: Estimate the pose using RANSAC approach

0 commit comments

Comments
 (0)