mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
fix tutorial on real time pose estimation
This commit is contained in:
parent
cff79609c8
commit
6f4e35cc0e
@ -222,7 +222,7 @@ int main(int argc, char *argv[])
|
|||||||
Mat inliers_idx;
|
Mat inliers_idx;
|
||||||
vector<Point2f> list_points2d_inliers;
|
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
|
// -- Step 3: Estimate the pose using RANSAC approach
|
||||||
|
Loading…
Reference in New Issue
Block a user