I'm currently trying to detect an arrow and its orientation using OpenCV. I've done the contour detection process that work fine but my problem is on the shape-matching side.
I tried to use matchShapes function in OpenCV but my results seems really bad. I use a simple template image and a processed image (usually a photo but for the test I used a simple image)
Template Image:
Processed Image:
Using these two, matchShapes tells me that the square on the left looks more like the template that the arrow on the image. I don't know where does this comes from.
Is matchShapes a bad function for this use? Someone told me to use SIFT algorithm but isn't it a little bit overkill for such a simple shape?
Thanks,