template matching with threshold

asked 2014-04-21 05:30:59 -0600

Guian gravatar image

Hello everyone, I've got a little probleme when using the template matching :

I try to find out if my template is in the picture or not so I need to compare scores to a threshold

I should get a similarity score from minmaxLoc

but min is always 0 and max is always 1 even if the template is not in my picture.

I've try several matching methods with the same result :/

Maybe I 've misunderstood something, How would you do that ?

edit retag flag offensive close merge delete

Comments

Do you have code to check to see that both the template and the image are the same format? Also the heat map has to be created just right.

GrumbleLion gravatar imageGrumbleLion ( 2014-04-28 15:28:45 -0600 )edit

sorry,i think i have no code.But what's kind of format do you want?

wuling gravatar imagewuling ( 2014-04-28 19:31:08 -0600 )edit