1 | initial version |
Template matching is not good when your object is rotated or scaled.
features2d methods to extract keypoints
FAST is simple and fast but doesn't keep information about angle of points of interest. SURF and SIFT are slower, but their information about points of interests are bigger (angles). SIFT and SURF allow you to find scale-invariant matches. If you want scale invariant: BRISK, paper brisk
(FAST, STAR, SIFT, SURF, ORB, BRISK,... are supported in OPENCV: FeatureDectectors)
method
I did (some time ago) something similar to recognize some sheets. The steps are:
In order to extract descriptors, see DescriptorExtractors
Match descriptors by matcher: DescriptorMatcher
Here are to good tutorials: