diff --git a/test/MANIFEST.in b/test1/MANIFEST.in similarity index 100% rename from test/MANIFEST.in rename to test1/MANIFEST.in diff --git a/test/__init__.py b/test1/__init__.py similarity index 100% rename from test/__init__.py rename to test1/__init__.py diff --git a/test/api.md b/test1/api.md similarity index 92% rename from test/api.md rename to test1/api.md index 60cf18f4405922df3fe19fcc209dc8b727d71c14..7283595d0966e1abfda2409bd7096e8425e7efe5 100644 --- a/test/api.md +++ b/test1/api.md @@ -1,5 +1,11 @@ # PaddleStructure +install layoutparser +```sh +wget https://paddleocr.bj.bcebos.com/whl/layoutparser-0.0.0-py3-none-any.whl +pip3 install layoutparser-0.0.0-py3-none-any.whl +``` + ## 1. Introduction to pipeline PaddleStructure is a toolkit for complex layout text OCR, the process is as follows diff --git a/test/api_ch.md b/test1/api_ch.md similarity index 92% rename from test/api_ch.md rename to test1/api_ch.md index c755415d2bc04221619bea8d345ef87a958a9fe2..7fafe700139c00dfb65d19c1d3f634add360b890 100644 --- a/test/api_ch.md +++ b/test1/api_ch.md @@ -1,5 +1,11 @@ # PaddleStructure +安装layoutparser +```sh +wget https://paddleocr.bj.bcebos.com/whl/layoutparser-0.0.0-py3-none-any.whl +pip3 install layoutparser-0.0.0-py3-none-any.whl +``` + ## 1. pipeline介绍 PaddleStructure 是一个用于复杂板式文字OCR的工具包,流程如下 diff --git a/test/layout/README.md b/test1/layout/README.md similarity index 100% rename from test/layout/README.md rename to test1/layout/README.md diff --git a/test/layout/train_layoutparser_model.md b/test1/layout/train_layoutparser_model.md similarity index 100% rename from test/layout/train_layoutparser_model.md rename to test1/layout/train_layoutparser_model.md diff --git a/test1/layoutparser-0.0.0-py3-none-any.whl b/test1/layoutparser-0.0.0-py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..e3fa17fc4dab24440761ce04deac64f36d16591e Binary files /dev/null and b/test1/layoutparser-0.0.0-py3-none-any.whl differ diff --git a/test/paddlestructure.py b/test1/paddlestructure.py similarity index 97% rename from test/paddlestructure.py rename to test1/paddlestructure.py index 67fd85cf37f6833e9d1229bda6c039500c901cba..171d55b38ab06f0fc6a874df597281e20de0483a 100644 --- a/test/paddlestructure.py +++ b/test1/paddlestructure.py @@ -24,9 +24,9 @@ import numpy as np from pathlib import Path from ppocr.utils.logging import get_logger -from test.predict_system import OCRSystem, save_res -from test.table.predict_table import to_excel -from test.utility import init_args, draw_result +from test1.predict_system import OCRSystem, save_res +from test1.table.predict_table import to_excel +from test1.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/test/predict_system.py b/test1/predict_system.py similarity index 97% rename from test/predict_system.py rename to test1/predict_system.py index 94ad4d80306c0c5191b36d6a686e7446a7878765..9e99a48cdf033f1cdb2263fc7a655a26a53ded92 100644 --- a/test/predict_system.py +++ b/test1/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 test.table.predict_table import TableSystem, to_excel -from test.utility import parse_args, draw_result +from test1.table.predict_table import TableSystem, to_excel +from test1.utility import parse_args, draw_result logger = get_logger() diff --git a/test/setup.py b/test1/setup.py similarity index 93% rename from test/setup.py rename to test1/setup.py index 7a2c3676d618463b6083c7dc09f09cb94ff255e6..0b092c49a4db98def28a7c2942993806b0ffc27c 100644 --- a/test/setup.py +++ b/test1/setup.py @@ -30,9 +30,9 @@ def readme(): return README -shutil.copytree('/table', './test/table') -shutil.copyfile('/predict_system.py', './test/predict_system.py') -shutil.copyfile('/utility.py', './test/utility.py') +shutil.copytree('./table', './test1/table') +shutil.copyfile('./predict_system.py', './test1/predict_system.py') +shutil.copyfile('./utility.py', './test1/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('test') +shutil.rmtree('test1') os.remove('LICENSE') diff --git a/test/table/README.md b/test1/table/README.md similarity index 100% rename from test/table/README.md rename to test1/table/README.md diff --git a/test/table/README_ch.md b/test1/table/README_ch.md similarity index 100% rename from test/table/README_ch.md rename to test1/table/README_ch.md diff --git a/test/table/__init__.py b/test1/table/__init__.py similarity index 100% rename from test/table/__init__.py rename to test1/table/__init__.py diff --git a/test/table/eval_table.py b/test1/table/eval_table.py similarity index 94% rename from test/table/eval_table.py rename to test1/table/eval_table.py index a027a45f7c80109a8fafc1fc1f0c8fd2aa03d70b..dc63e34e2a85657a6487e7abb081854e937cf669 100755 --- a/test/table/eval_table.py +++ b/test1/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 test.table.table_metric import TEDS -from test.table.predict_table import TableSystem -from test.utility import init_args +from test1.table.table_metric import TEDS +from test1.table.predict_table import TableSystem +from test1.utility import init_args from ppocr.utils.logging import get_logger logger = get_logger() diff --git a/test/table/matcher.py b/test1/table/matcher.py similarity index 100% rename from test/table/matcher.py rename to test1/table/matcher.py diff --git a/test/table/predict_structure.py b/test1/table/predict_structure.py similarity index 99% rename from test/table/predict_structure.py rename to test1/table/predict_structure.py index eacf257719a88a672d5c25a50cf12867d344c21c..455bf7e7b93bc7a97635027c73900ffb39f50f95 100755 --- a/test/table/predict_structure.py +++ b/test1/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 test.utility import parse_args +from test1.utility import parse_args logger = get_logger() diff --git a/test/table/predict_table.py b/test1/table/predict_table.py similarity index 98% rename from test/table/predict_table.py rename to test1/table/predict_table.py index 66c0895d3a889e7244608da81e5090639494667d..b06a4f4d53402ca809f0ab846f83176795ca7217 100644 --- a/test/table/predict_table.py +++ b/test1/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 test.table.matcher import distance, compute_iou -from test.utility import parse_args -import test.table.predict_structure as predict_strture +from test1.table.matcher import distance, compute_iou +from test1.utility import parse_args +import test1.table.predict_structure as predict_strture logger = get_logger() diff --git a/test/table/table_metric/__init__.py b/test1/table/table_metric/__init__.py similarity index 100% rename from test/table/table_metric/__init__.py rename to test1/table/table_metric/__init__.py diff --git a/test/table/table_metric/parallel.py b/test1/table/table_metric/parallel.py similarity index 100% rename from test/table/table_metric/parallel.py rename to test1/table/table_metric/parallel.py diff --git a/test/table/table_metric/table_metric.py b/test1/table/table_metric/table_metric.py similarity index 100% rename from test/table/table_metric/table_metric.py rename to test1/table/table_metric/table_metric.py diff --git a/test/table/tablepyxl/__init__.py b/test1/table/tablepyxl/__init__.py similarity index 100% rename from test/table/tablepyxl/__init__.py rename to test1/table/tablepyxl/__init__.py diff --git a/test/table/tablepyxl/style.py b/test1/table/tablepyxl/style.py similarity index 100% rename from test/table/tablepyxl/style.py rename to test1/table/tablepyxl/style.py diff --git a/test/table/tablepyxl/tablepyxl.py b/test1/table/tablepyxl/tablepyxl.py similarity index 100% rename from test/table/tablepyxl/tablepyxl.py rename to test1/table/tablepyxl/tablepyxl.py diff --git a/test/utility.py b/test1/utility.py similarity index 100% rename from test/utility.py rename to test1/utility.py