Increase template matching quality
I currently try to match an image with a given template and get it's coordinates. (To display it's in a red circle)
Template:
Source:
As you can see, it matched a wrong icon because the template was not found. So my question is, how do I make the matchTemplate more strict?
How do you get your result ? If you looked for maximum location in output result then you should get maximum value at this location. Perfect matching is 1 (TM_CCORR_NORMED)