mp-02 commited on
Commit
b038747
1 Parent(s): de04f9b

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -0
utils.py CHANGED
@@ -33,6 +33,7 @@ def OCR(image):
33
  res = result[idx]
34
 
35
  for line in res:
 
36
  # print(line)
37
  # print(line[0][0] + line[0][2])
38
  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))