Spaces:
Sleeping
Sleeping
rogerxavier
commited on
Commit
•
9f40c3d
1
Parent(s):
55878f8
Update ofa_ocr.py
Browse files- ofa_ocr.py +1 -0
ofa_ocr.py
CHANGED
@@ -53,6 +53,7 @@ def ofa_ocr_gr():
|
|
53 |
results = get_images(img, reader, max_size=4000, text_confidence=0.7, text_threshold=0.4,
|
54 |
link_threshold=0.4, slope_ths=0., add_margin=0.04)
|
55 |
print("ocr_api处理结果是")
|
|
|
56 |
#增加一个意外处理
|
57 |
try:
|
58 |
box_list, image_list = zip(*results)
|
|
|
53 |
results = get_images(img, reader, max_size=4000, text_confidence=0.7, text_threshold=0.4,
|
54 |
link_threshold=0.4, slope_ths=0., add_margin=0.04)
|
55 |
print("ocr_api处理结果是")
|
56 |
+
print(results)
|
57 |
#增加一个意外处理
|
58 |
try:
|
59 |
box_list, image_list = zip(*results)
|