diff --git a/paddleocr.py b/paddleocr.py index 028d855c99..6ab64bc1e8 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -32,7 +32,6 @@ from io import BytesIO import pprint from PIL import Image -from tools.infer import predict_system def _import_file(module_name, file_path, make_importable=False): @@ -63,6 +62,7 @@ def _import_file(module_name, file_path, make_importable=False): is_link, confirm_model_dir_url, ) +from tools.infer import predict_system 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