This project uses ORB in OpenCV-python.
Usage is very simple and straight forward.
-
Add training images to Imtrain.
-
Add test images to Imtest. The images in Imtest will be related to the images in Imtrain.
-
Run main.py
-
Here is an example output of the code
- The training image is processed in order to look soft and have detectable corners.
- ORB is used to get the features (here, 50000)
- Good features are extracted using BFmatcher. The metric is the distance calculated in the ORB algorithm.
- Finally, the image in the test set get their good features with each image in Imtrain and the image with the most good features wins and is displayed.