Is there a way to use templateMatch to return a boolean, and x,y coordinates of the match? (Python)
Is there a way to use templateMatch to return a boolean, and x,y coordinates of the match? I have been trying to read articles to understand the results from a template match (i.e. min_val, max_val, min_loc, max_loc), but almost all of them simply put a box around the match. I want to build a function to search for the match and then return true or false, and if true what are the x,y coordinates of match. Seems simple to me, but can't find info. Thank you!
Who voted my question down almost instantly but didn't try to help answer it?
minMaxLoc will give you the position, and the minimal distance. threshold the distance, and you're done.