统一模型接口,新增文本分类接口
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user