Spaces:
Sleeping
Sleeping
Commit
·
9061119
1
Parent(s):
8c4cabc
Update api.py
Browse files
api.py
CHANGED
@@ -76,6 +76,7 @@ def get_time():
|
|
76 |
print(result, "Result")
|
77 |
# iterate on all results
|
78 |
for res in result:
|
|
|
79 |
top_left = tuple(res[0][0]) # top left coordinates as tuple
|
80 |
bottom_right = tuple(res[0][2]) # bottom right coordinates as tuple
|
81 |
# draw rectangle on image
|
|
|
76 |
print(result, "Result")
|
77 |
# iterate on all results
|
78 |
for res in result:
|
79 |
+
img = cv2.resize(img,(int(img.shape[1]*65/100),int(img.shape[0]*65/100)))
|
80 |
top_left = tuple(res[0][0]) # top left coordinates as tuple
|
81 |
bottom_right = tuple(res[0][2]) # bottom right coordinates as tuple
|
82 |
# draw rectangle on image
|