From 724f5e0d63f6fc433cb0d00e63909ffabf5eb4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Ba=C5=9Faran?= <75089029+AliBasarann@users.noreply.github.com> Date: Mon, 1 Apr 2024 09:21:32 +0300 Subject: [PATCH] TextSystem is imported correctly in paddleocr.py (#11847) --- paddleocr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddleocr.py b/paddleocr.py index 166a4bd74..ce9d32dee 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -51,7 +51,7 @@ from ppocr.utils.utility import check_and_read, get_image_file_list, alpha_to_co from ppocr.utils.network import maybe_download, download_with_progressbar, is_link, confirm_model_dir_url from tools.infer.utility import draw_ocr, str2bool, check_gpu from ppstructure.utility import init_args, draw_structure_result -from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel +from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel, TextSystem logger = get_logger() __all__ = [ @@ -572,7 +572,7 @@ def check_img(img, alpha_color=(255, 255, 255)): return img -class PaddleOCR(predict_system.TextSystem): +class PaddleOCR(TextSystem): def __init__(self, **kwargs): """ paddleocr package