Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b7c191a

Browse files
code formatting
1 parent 540592e commit b7c191a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎MTM/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ def findMatches(listTemplates, image, method=cv2.TM_CCOEFF_NORMED, N_object=floa
114114
-------
115115
- Pandas DataFrame with 1 row per hit and column "TemplateName"(string), "BBox":(X, Y, Width, Height), "Score":float
116116
"""
117-
if N_object!=float("inf") and type(N_object)!=int:
117+
if N_object!=float("inf") and type(N_object)!=int:
118118
raise TypeError("N_object must be an integer")
119119

120120
## Crop image to search region if provided
121-
if searchBox != None:
121+
if searchBox isnot None:
122122
xOffset, yOffset, searchWidth, searchHeight = searchBox
123123
image = image[yOffset:yOffset+searchHeight, xOffset:xOffset+searchWidth]
124124
else:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /