@@ -294,7 +294,8 @@ class PaddleOCR(predict_system.TextSystem):
"""
params=parse_args(mMain=False)
params.__dict__.update(**kwargs)
assertparams.ocr_versioninSUPPORT_OCR_MODEL_VERSION,"ocr_version must in {}, but get {}".format(SUPPORT_OCR_MODEL_VERSION,params.ocr_version)
assertparams.ocr_versioninSUPPORT_OCR_MODEL_VERSION,"ocr_version must in {}, but get {}".format(
SUPPORT_OCR_MODEL_VERSION,params.ocr_version)
params.use_gpu=check_gpu(params.use_gpu)
ifnotparams.show_log:
...
...
@@ -397,7 +398,8 @@ class PPStructure(OCRSystem):
def__init__(self,**kwargs):
params=parse_args(mMain=False)
params.__dict__.update(**kwargs)
assertparams.structure_versioninSUPPORT_STRUCTURE_MODEL_VERSION,"ocr_version must in {}, but get {}".format(SUPPORT_STRUCTURE_MODEL_VERSION,params.structure_version)
assertparams.structure_versioninSUPPORT_STRUCTURE_MODEL_VERSION,"ocr_version must in {}, but get {}".format(