提交 8a0a3a54 编写于 作者: T tink2123

update result img

上级 1210dbf5
......@@ -46,9 +46,14 @@ for idx, img_file in enumerate(os.listdir(test_img_dir)):
# check success
if result["err_no"] == 0:
ocr_result = result["value"][0]
for item in eval(ocr_result):
# return transcription and points
print("{}, {}".format(item[0], item[1]))
try:
for item in eval(ocr_result):
# return transcription and points
print("{}, {}".format(item[0], item[1]))
except Exception as e:
print("No results")
continue
else:
print(
"For details about error message, see PipelineServingLogs/pipeline.log"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册