template matching with threshold
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 ?
please reference :http://opencv-code.com/quick-tips/how-to-handle-template-matching-with-multiple-occurences/
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.
sorry,i think i have no code.But what's kind of format do you want?