mp-02 commited on
Commit
dc6e69c
1 Parent(s): 82f712b

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -33,7 +33,7 @@ def OCR(image):
33
  res = result[idx]
34
 
35
  for line in res:
36
- if(line[1][0] == "") continue
37
  # print(line)
38
  # print(line[0][0] + line[0][2])
39
  bboxes.append(normalize_bbox(line[0][0]+line[0][2], image.width, image.height))
 
33
  res = result[idx]
34
 
35
  for line in res:
36
+ if(line[1][0] == ""): continue
37
  # print(line)
38
  # print(line[0][0] + line[0][2])
39
  bboxes.append(normalize_bbox(line[0][0]+line[0][2], image.width, image.height))