Spaces:
Runtime error
Runtime error
Commit
•
21d1d9f
1
Parent(s):
2d914d9
added timer
Browse files- detector.py +2 -0
detector.py
CHANGED
@@ -71,6 +71,7 @@ def find_bats(allImgs):
|
|
71 |
return cropped_bats
|
72 |
|
73 |
def bat_detector(img):
|
|
|
74 |
totalBats = 0
|
75 |
|
76 |
allImgs = chop_img(img, 3)
|
@@ -91,4 +92,5 @@ def bat_detector(img):
|
|
91 |
totalBats += 1
|
92 |
else:
|
93 |
pass
|
|
|
94 |
return totalBats
|
|
|
71 |
return cropped_bats
|
72 |
|
73 |
def bat_detector(img):
|
74 |
+
start = time.time()
|
75 |
totalBats = 0
|
76 |
|
77 |
allImgs = chop_img(img, 3)
|
|
|
92 |
totalBats += 1
|
93 |
else:
|
94 |
pass
|
95 |
+
print((time.time()-start))
|
96 |
return totalBats
|