Skip to content

Commit 564e964

Browse files
committed
fix indent
1 parent c4314ca commit 564e964

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MTM/NMS.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ def NMS(tableHit, scoreThreshold=0, sortAscending=False, N_object=float("inf"),
5252
indexes = cv2.dnn.NMSBoxes(listBoxes, listScores, scoreThreshold, maxOverlap)
5353

5454
if N_object == float("inf"):
55-
indexes = [ index[0] for index in indexes ] # ordered by score
55+
indexes = [ index[0] for index in indexes ] # ordered by score
5656
else:
57-
indexes = [ index[0] for index in indexes[:N_object] ]
58-
59-
outTable = tableHit.iloc[indexes]
57+
indexes = [ index[0] for index in indexes[:N_object] ]
58+
59+
outTable = tableHit.iloc[indexes]
6060

6161
return outTable
6262

0 commit comments

Comments
 (0)