Skip to content

Commit bc01807

Browse files
committed
use tuples for BBox (immutable)
1 parent 9fe269b commit bc01807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MTM/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def findMatches(listTemplates, image, method=cv2.TM_CCOEFF_NORMED, N_object=floa
124124

125125
for peak in Peaks :
126126
coeff = corrMap[tuple(peak)]
127-
newHit = {'TemplateName':templateName, 'BBox': [int(peak[1])+xOffset, int(peak[0])+yOffset, width, height], 'Score':coeff}
127+
newHit = {'TemplateName':templateName, 'BBox': ( int(peak[1])+xOffset, int(peak[0])+yOffset, width, height ) , 'Score':coeff}
128128

129129
# append to list of potential hit before Non maxima suppression
130130
listHit.append(newHit)

0 commit comments

Comments
 (0)