统一模型接口,新增文本分类接口

This commit is contained in:
2024-09-27 13:50:55 +08:00
parent 117b29a737
commit f1149854ce
13 changed files with 144 additions and 97 deletions

View File

@@ -36,7 +36,7 @@ def get_ocr_layout(ocr, img_path):
return True
layout = []
ocr_result = model_util.request_ocr(img_path)
ocr_result = model_util.ocr(img_path)
ocr_result = ocr_result[0]
if not ocr_result:
return layout