Ask Your Question

Revision history [back]

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!