TextSystem is imported correctly in paddleocr.py (#11847)

pull/11871/head
Ali Başaran 2024-04-01 09:21:32 +03:00 committed by GitHub
parent 261d6c2fd0
commit 724f5e0d63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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