Spaces:
Running
Running
Update utils.py
Browse files
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))
|