This my problem.
I have a symbol written in black in a white background. As an example assume my symbol is "Z". But it does not has to be a letter always.
Now i have image of this pattern stored.
Then i draw another pattern. image size will be same as the above. Then i input this new pattern to my program and i want to check whether it matches to the stored pattern.
Even if the new patten has a similar shape but different size, it should be matched to the stored image. Therefor pattern shape is the differentiating factor. Obviously rotated patter means a different pattern.
Is there a way to do this in opencv??
I tried using feature matching. But it did not work. I think i can use a classifier but i do not have a good knowledge on that.
Can some one help me??
user2389323 - The short answer is yes, you can do what you described using OpenCV. Pattern matching using image processing techniques is a major piece of OpenCV. Here are some example conversations I have found dealing with this topic:
Edge Based Template Matching (includes source downloads)
Template Matching and Slice Alignment
Template Matching - Example code and tech description
I hope these links have something to help you. They were not hard to find using Pattern Matching using OpenCV in Google :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With