Increase template matching quality

asked 2018-07-04 17:29:22 -0600

0x45 gravatar image

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: image description

Source: 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?

edit retag flag offensive close merge delete

Comments

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)

LBerger gravatar imageLBerger ( 2018-07-05 02:00:17 -0600 )edit