Spaces:
Sleeping
Sleeping
Commit
·
80c0cf7
1
Parent(s):
79372a6
image resize for making code fast
Browse files
api.py
CHANGED
@@ -72,6 +72,7 @@ def get_time():
|
|
72 |
cv2.rectangle(img_ROI, (X1, Y1), (X2, Y2), (255, 0, 255), 2)
|
73 |
|
74 |
else:
|
|
|
75 |
result = reader.readtext(img, paragraph='True')
|
76 |
print(result, "Result")
|
77 |
# iterate on all results
|
|
|
72 |
cv2.rectangle(img_ROI, (X1, Y1), (X2, Y2), (255, 0, 255), 2)
|
73 |
|
74 |
else:
|
75 |
+
img = cv2.resize(img,(int(img.shape[1]*65/100),int(img.shape[0]*65/100/)))
|
76 |
result = reader.readtext(img, paragraph='True')
|
77 |
print(result, "Result")
|
78 |
# iterate on all results
|