OpenCV 4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Features2D + Homography to find a known object

Table of Contents

Prev Tutorial: Feature Matching with FLANN
Next Tutorial: Detection of planar objects

Original author Ana Huamán
Compatibility OpenCV >= 3.0

Goal

In this tutorial you will learn how to:

Warning
You need the OpenCV contrib modules to be able to use the SURF features (alternatives are ORB, KAZE, ... features).

Theory

Code

Explanation

Result

  • And here is the result for the detected object (highlighted in green). Note that since the homography is estimated with a RANSAC approach, detected false matches will not impact the homography calculation.