Skip to content

Commit 2f849cc

Browse files
AliBasarannadiel
authored and
adiel
committed
TextSystem is imported correctly in paddleocr.py (PaddlePaddle#11847)
1 parent 0466bba commit 2f849cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

paddleocr.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ def _import_file(module_name, file_path, make_importable=False):
5454
from ppocr.utils.network import maybe_download, download_with_progressbar, is_link, confirm_model_dir_url
5555
from tools.infer.utility import draw_ocr, str2bool, check_gpu
5656
from ppstructure.utility import init_args, draw_structure_result
57-
from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel
58-
from ppstructure.recovery.recovery_to_doc import sorted_layout_boxes, convert_info_docx
59-
from ppstructure.recovery.recovery_to_markdown import convert_info_markdown
57+
from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel, TextSystem
6058

6159
logger = get_logger()
6260

@@ -614,7 +612,7 @@ def check_img(img, alpha_color=(255, 255, 255)):
614612
return img
615613

616614

617-
class PaddleOCR(predict_system.TextSystem):
615+
class PaddleOCR(TextSystem):
618616
def __init__(self, **kwargs):
619617
"""
620618
paddleocr package

0 commit comments

Comments
 (0)