We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de5314 commit 27a8b89Copy full SHA for 27a8b89
MTM/__init__.py
@@ -78,7 +78,7 @@ def computeScoreMap(template, image, method=cv2.TM_CCOEFF_NORMED, mask=None):
78
79
80
# Compute correlation map
81
- return cv2.matchTemplate(template, image, method, mask=mask)
+ return cv2.matchTemplate(image, template, method, mask=mask)
82
83
84
def findMatches(listTemplates, image, method=cv2.TM_CCOEFF_NORMED, N_object=float("inf"), score_threshold=0.5, searchBox=None):
0 commit comments