Approach for detecting a similar object
I am trying to detect this object (let's call it "Arrow")
in these two images:
Image "A"
and
Image "B"
Right now, my approach is to load the scene image (either of the last two) in grayscale and then the object image (the arrow, first image) in grayscale and then using the SURF Feature detector, and SURF Descriptor with a Flann Based Matcher to match similar features. The problem I am running is that my object image does not have a lot of features (as you can probably tell) and it only matches Image "A".
I may be taking the wrong approach given that I am new in computer vision so I would like to ask for recommendations. Maybe I need to use a different technique in this case and my inexperience is holding me back. Or maybe I am missing something obvious. I 'd appreciate any input. Thanks!
PS: If it matters in any way, I am using the latest OpenCV java port.
Have you tried template matching?
I thought template matching would only work with similar sized images. But I haven't tried it yet. I will give it a try.
That actually did the trick, I guess I can use the template matching approach for most of my objects and if it doesn't work then I 'll try to do it by feature detection. Thanks Haris!
You are welcome....I am glad it helped...:)