Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try this:

res = cv2.matchTemplate(large_image, small_image, cv2.TM_CCOEFF_NORMED)
to
res = cv2.matchTemplate(large_image, small_image, cv2.TM_SQDIFF, mask=mask)