diff --git a/ppstructure/MANIFEST.in b/test/MANIFEST.in similarity index 100% rename from ppstructure/MANIFEST.in rename to test/MANIFEST.in diff --git a/ppstructure/__init__.py b/test/__init__.py similarity index 100% rename from ppstructure/__init__.py rename to test/__init__.py diff --git a/ppstructure/README.md b/test/api.md similarity index 100% rename from ppstructure/README.md rename to test/api.md diff --git a/ppstructure/README_ch.md b/test/api_ch.md similarity index 100% rename from ppstructure/README_ch.md rename to test/api_ch.md diff --git a/ppstructure/paddlestructure.py b/test/paddlestructure.py similarity index 96% rename from ppstructure/paddlestructure.py rename to test/paddlestructure.py index f24234bb4831ced1c10a7bdfb4877f52f6932d1e..67fd85cf37f6833e9d1229bda6c039500c901cba 100644 --- a/ppstructure/paddlestructure.py +++ b/test/paddlestructure.py @@ -24,9 +24,9 @@ import numpy as np from pathlib import Path from ppocr.utils.logging import get_logger -from ppstructure.predict_system import OCRSystem, save_res -from ppstructure.table.predict_table import to_excel -from ppstructure.utility import init_args, draw_result +from test.predict_system import OCRSystem, save_res +from test.table.predict_table import to_excel +from test.utility import init_args, draw_result logger = get_logger() from ppocr.utils.utility import check_and_read_gif, get_image_file_list diff --git a/ppstructure/predict_system.py b/test/predict_system.py similarity index 97% rename from ppstructure/predict_system.py rename to test/predict_system.py index 009c20521fc833d1da39699d6b39ba290cda81d0..94ad4d80306c0c5191b36d6a686e7446a7878765 100644 --- a/ppstructure/predict_system.py +++ b/test/predict_system.py @@ -31,8 +31,8 @@ import layoutparser as lp from ppocr.utils.utility import get_image_file_list, check_and_read_gif from ppocr.utils.logging import get_logger from tools.infer.predict_system import TextSystem -from ppstructure.table.predict_table import TableSystem, to_excel -from ppstructure.utility import parse_args, draw_result +from test.table.predict_table import TableSystem, to_excel +from test.utility import parse_args, draw_result logger = get_logger() diff --git a/ppstructure/setup.py b/test/setup.py similarity index 89% rename from ppstructure/setup.py rename to test/setup.py index 8e68b2e44140f6ad5a13661349666d17cfe45524..7a2c3676d618463b6083c7dc09f09cb94ff255e6 100644 --- a/ppstructure/setup.py +++ b/test/setup.py @@ -25,14 +25,14 @@ with open('../requirements.txt', encoding="utf-8-sig") as f: def readme(): - with open('README_ch.md', encoding="utf-8-sig") as f: + with open('api_ch.md', encoding="utf-8-sig") as f: README = f.read() return README -shutil.copytree('../ppstructure/table', './ppstructure/table') -shutil.copyfile('../ppstructure/predict_system.py', './ppstructure/predict_system.py') -shutil.copyfile('../ppstructure/utility.py', './ppstructure/utility.py') +shutil.copytree('/table', './test/table') +shutil.copyfile('/predict_system.py', './test/predict_system.py') +shutil.copyfile('/utility.py', './test/utility.py') shutil.copytree('../ppocr', './ppocr') shutil.copytree('../tools', './tools') shutil.copyfile('../LICENSE', './LICENSE') @@ -68,5 +68,5 @@ setup( shutil.rmtree('ppocr') shutil.rmtree('tools') -shutil.rmtree('ppstructure') +shutil.rmtree('test') os.remove('LICENSE') diff --git a/ppstructure/table/README.md b/test/table/README.md similarity index 100% rename from ppstructure/table/README.md rename to test/table/README.md diff --git a/ppstructure/table/README_ch.md b/test/table/README_ch.md similarity index 100% rename from ppstructure/table/README_ch.md rename to test/table/README_ch.md diff --git a/ppstructure/table/__init__.py b/test/table/__init__.py similarity index 100% rename from ppstructure/table/__init__.py rename to test/table/__init__.py diff --git a/ppstructure/table/eval_table.py b/test/table/eval_table.py similarity index 93% rename from ppstructure/table/eval_table.py rename to test/table/eval_table.py index 15f549376566811813aac40bd88ffbcbdbddbf5b..a027a45f7c80109a8fafc1fc1f0c8fd2aa03d70b 100755 --- a/ppstructure/table/eval_table.py +++ b/test/table/eval_table.py @@ -20,9 +20,9 @@ sys.path.append(os.path.abspath(os.path.join(__dir__, '../..'))) import cv2 import json from tqdm import tqdm -from ppstructure.table.table_metric import TEDS -from ppstructure.table.predict_table import TableSystem -from ppstructure.utility import init_args +from test.table.table_metric import TEDS +from test.table.predict_table import TableSystem +from test.utility import init_args from ppocr.utils.logging import get_logger logger = get_logger() diff --git a/ppstructure/table/matcher.py b/test/table/matcher.py similarity index 100% rename from ppstructure/table/matcher.py rename to test/table/matcher.py diff --git a/ppstructure/table/predict_structure.py b/test/table/predict_structure.py similarity index 99% rename from ppstructure/table/predict_structure.py rename to test/table/predict_structure.py index d8a3b3a8dfe3e631861d152cc6e731eca3e6742e..eacf257719a88a672d5c25a50cf12867d344c21c 100755 --- a/ppstructure/table/predict_structure.py +++ b/test/table/predict_structure.py @@ -32,7 +32,7 @@ from ppocr.data import create_operators, transform from ppocr.postprocess import build_post_process from ppocr.utils.logging import get_logger from ppocr.utils.utility import get_image_file_list, check_and_read_gif -from ppstructure.utility import parse_args +from test.utility import parse_args logger = get_logger() diff --git a/ppstructure/table/predict_table.py b/test/table/predict_table.py similarity index 98% rename from ppstructure/table/predict_table.py rename to test/table/predict_table.py index 352ae84de1f435f91258cf0ced4dce9345de1220..66c0895d3a889e7244608da81e5090639494667d 100644 --- a/ppstructure/table/predict_table.py +++ b/test/table/predict_table.py @@ -30,9 +30,9 @@ import tools.infer.predict_rec as predict_rec import tools.infer.predict_det as predict_det from ppocr.utils.utility import get_image_file_list, check_and_read_gif from ppocr.utils.logging import get_logger -from ppstructure.table.matcher import distance, compute_iou -from ppstructure.utility import parse_args -import ppstructure.table.predict_structure as predict_strture +from test.table.matcher import distance, compute_iou +from test.utility import parse_args +import test.table.predict_structure as predict_strture logger = get_logger() diff --git a/ppstructure/table/table_metric/__init__.py b/test/table/table_metric/__init__.py similarity index 100% rename from ppstructure/table/table_metric/__init__.py rename to test/table/table_metric/__init__.py diff --git a/ppstructure/table/table_metric/parallel.py b/test/table/table_metric/parallel.py similarity index 100% rename from ppstructure/table/table_metric/parallel.py rename to test/table/table_metric/parallel.py diff --git a/ppstructure/table/table_metric/table_metric.py b/test/table/table_metric/table_metric.py similarity index 100% rename from ppstructure/table/table_metric/table_metric.py rename to test/table/table_metric/table_metric.py diff --git a/ppstructure/table/tablepyxl/__init__.py b/test/table/tablepyxl/__init__.py similarity index 100% rename from ppstructure/table/tablepyxl/__init__.py rename to test/table/tablepyxl/__init__.py diff --git a/ppstructure/table/tablepyxl/style.py b/test/table/tablepyxl/style.py similarity index 100% rename from ppstructure/table/tablepyxl/style.py rename to test/table/tablepyxl/style.py diff --git a/ppstructure/table/tablepyxl/tablepyxl.py b/test/table/tablepyxl/tablepyxl.py similarity index 100% rename from ppstructure/table/tablepyxl/tablepyxl.py rename to test/table/tablepyxl/tablepyxl.py diff --git a/ppstructure/utility.py b/test/utility.py similarity index 100% rename from ppstructure/utility.py rename to test/utility.py