muhammadzain commited on
Commit
823a192
·
1 Parent(s): 51d3f29

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -72,7 +72,7 @@ def get_time():
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
 
72
  cv2.rectangle(img_ROI, (X1, Y1), (X2, Y2), (255, 0, 255), 2)
73
 
74
  else:
75
+ img = cv2.resize(img,(int(IacW*65/100),int(IacH*65/100)))
76
  result = reader.readtext(img, paragraph='True')
77
  print(result, "Result")
78
  # iterate on all results