Commit bb925fe4 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #10879 from StevenPuttemans:fix_10650

parents 1dbdb1cf 6f4e35cc
......@@ -222,7 +222,7 @@ int main(int argc, char *argv[])
Mat inliers_idx;
vector<Point2f> list_points2d_inliers;
if(good_matches.size() > 0) // None matches, then RANSAC crashes
if(good_matches.size() >= 4) // OpenCV requires solvePnPRANSAC to minimally have 4 set of points
{
// -- Step 3: Estimate the pose using RANSAC approach
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment