From b2260182e436e6cddbed3dca749eab6125e9f5b5 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Tue, 15 Jun 2021 15:47:57 +0800 Subject: [PATCH] rename folder --- {ppstructure => test}/MANIFEST.in | 0 {ppstructure => test}/__init__.py | 0 ppstructure/README.md => test/api.md | 0 ppstructure/README_ch.md => test/api_ch.md | 0 {ppstructure => test}/paddlestructure.py | 6 +++--- {ppstructure => test}/predict_system.py | 4 ++-- {ppstructure => test}/setup.py | 10 +++++----- {ppstructure => test}/table/README.md | 0 {ppstructure => test}/table/README_ch.md | 0 {ppstructure => test}/table/__init__.py | 0 {ppstructure => test}/table/eval_table.py | 6 +++--- {ppstructure => test}/table/matcher.py | 0 {ppstructure => test}/table/predict_structure.py | 2 +- {ppstructure => test}/table/predict_table.py | 6 +++--- {ppstructure => test}/table/table_metric/__init__.py | 0 {ppstructure => test}/table/table_metric/parallel.py | 0 .../table/table_metric/table_metric.py | 0 {ppstructure => test}/table/tablepyxl/__init__.py | 0 {ppstructure => test}/table/tablepyxl/style.py | 0 {ppstructure => test}/table/tablepyxl/tablepyxl.py | 0 {ppstructure => test}/utility.py | 0 21 files changed, 17 insertions(+), 17 deletions(-) rename {ppstructure => test}/MANIFEST.in (100%) rename {ppstructure => test}/__init__.py (100%) rename ppstructure/README.md => test/api.md (100%) rename ppstructure/README_ch.md => test/api_ch.md (100%) rename {ppstructure => test}/paddlestructure.py (96%) rename {ppstructure => test}/predict_system.py (97%) rename {ppstructure => test}/setup.py (89%) rename {ppstructure => test}/table/README.md (100%) rename {ppstructure => test}/table/README_ch.md (100%) rename {ppstructure => test}/table/__init__.py (100%) rename {ppstructure => test}/table/eval_table.py (93%) rename {ppstructure => test}/table/matcher.py (100%) rename {ppstructure => test}/table/predict_structure.py (99%) rename {ppstructure => test}/table/predict_table.py (98%) rename {ppstructure => test}/table/table_metric/__init__.py (100%) rename {ppstructure => test}/table/table_metric/parallel.py (100%) rename {ppstructure => test}/table/table_metric/table_metric.py (100%) rename {ppstructure => test}/table/tablepyxl/__init__.py (100%) rename {ppstructure => test}/table/tablepyxl/style.py (100%) rename {ppstructure => test}/table/tablepyxl/tablepyxl.py (100%) rename {ppstructure => test}/utility.py (100%) 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 f24234bb..67fd85cf 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 009c2052..94ad4d80 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 8e68b2e4..7a2c3676 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 15f54937..a027a45f 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 d8a3b3a8..eacf2577 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 352ae84d..66c0895d 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 -- GitLab