Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
bab0b22d
P
PaddleOCR
项目概览
PaddlePaddle
/
PaddleOCR
大约 1 年 前同步成功
通知
1528
Star
32962
Fork
6643
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
108
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
108
Issue
108
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bab0b22d
编写于
6月 18, 2021
作者:
文幕地方
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename test to test1
上级
94c5eb80
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
28 addition
and
16 deletion
+28
-16
test1/MANIFEST.in
test1/MANIFEST.in
+0
-0
test1/__init__.py
test1/__init__.py
+0
-0
test1/api.md
test1/api.md
+6
-0
test1/api_ch.md
test1/api_ch.md
+6
-0
test1/layout/README.md
test1/layout/README.md
+0
-0
test1/layout/train_layoutparser_model.md
test1/layout/train_layoutparser_model.md
+0
-0
test1/layoutparser-0.0.0-py3-none-any.whl
test1/layoutparser-0.0.0-py3-none-any.whl
+0
-0
test1/paddlestructure.py
test1/paddlestructure.py
+3
-3
test1/predict_system.py
test1/predict_system.py
+2
-2
test1/setup.py
test1/setup.py
+4
-4
test1/table/README.md
test1/table/README.md
+0
-0
test1/table/README_ch.md
test1/table/README_ch.md
+0
-0
test1/table/__init__.py
test1/table/__init__.py
+0
-0
test1/table/eval_table.py
test1/table/eval_table.py
+3
-3
test1/table/matcher.py
test1/table/matcher.py
+0
-0
test1/table/predict_structure.py
test1/table/predict_structure.py
+1
-1
test1/table/predict_table.py
test1/table/predict_table.py
+3
-3
test1/table/table_metric/__init__.py
test1/table/table_metric/__init__.py
+0
-0
test1/table/table_metric/parallel.py
test1/table/table_metric/parallel.py
+0
-0
test1/table/table_metric/table_metric.py
test1/table/table_metric/table_metric.py
+0
-0
test1/table/tablepyxl/__init__.py
test1/table/tablepyxl/__init__.py
+0
-0
test1/table/tablepyxl/style.py
test1/table/tablepyxl/style.py
+0
-0
test1/table/tablepyxl/tablepyxl.py
test1/table/tablepyxl/tablepyxl.py
+0
-0
test1/utility.py
test1/utility.py
+0
-0
未找到文件。
test/MANIFEST.in
→
test
1
/MANIFEST.in
浏览文件 @
bab0b22d
文件已移动
test/__init__.py
→
test
1
/__init__.py
浏览文件 @
bab0b22d
文件已移动
test/api.md
→
test
1
/api.md
浏览文件 @
bab0b22d
# 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
...
...
test/api_ch.md
→
test
1
/api_ch.md
浏览文件 @
bab0b22d
# 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的工具包,流程如下
...
...
test/layout/README.md
→
test
1
/layout/README.md
浏览文件 @
bab0b22d
文件已移动
test/layout/train_layoutparser_model.md
→
test
1
/layout/train_layoutparser_model.md
浏览文件 @
bab0b22d
文件已移动
test1/layoutparser-0.0.0-py3-none-any.whl
0 → 100644
浏览文件 @
bab0b22d
文件已添加
test/paddlestructure.py
→
test
1
/paddlestructure.py
浏览文件 @
bab0b22d
...
...
@@ -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
test
1
.predict_system
import
OCRSystem
,
save_res
from
test
1
.table.predict_table
import
to_excel
from
test
1
.utility
import
init_args
,
draw_result
logger
=
get_logger
()
from
ppocr.utils.utility
import
check_and_read_gif
,
get_image_file_list
...
...
test/predict_system.py
→
test
1
/predict_system.py
浏览文件 @
bab0b22d
...
...
@@ -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
test
1
.table.predict_table
import
TableSystem
,
to_excel
from
test
1
.utility
import
parse_args
,
draw_result
logger
=
get_logger
()
...
...
test/setup.py
→
test
1
/setup.py
浏览文件 @
bab0b22d
...
...
@@ -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
(
'test
1
'
)
os
.
remove
(
'LICENSE'
)
test/table/README.md
→
test
1
/table/README.md
浏览文件 @
bab0b22d
文件已移动
test/table/README_ch.md
→
test
1
/table/README_ch.md
浏览文件 @
bab0b22d
文件已移动
test/table/__init__.py
→
test
1
/table/__init__.py
浏览文件 @
bab0b22d
文件已移动
test/table/eval_table.py
→
test
1
/table/eval_table.py
浏览文件 @
bab0b22d
...
...
@@ -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
test
1
.table.table_metric
import
TEDS
from
test
1
.table.predict_table
import
TableSystem
from
test
1
.utility
import
init_args
from
ppocr.utils.logging
import
get_logger
logger
=
get_logger
()
...
...
test/table/matcher.py
→
test
1
/table/matcher.py
浏览文件 @
bab0b22d
文件已移动
test/table/predict_structure.py
→
test
1
/table/predict_structure.py
浏览文件 @
bab0b22d
...
...
@@ -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
test
1
.utility
import
parse_args
logger
=
get_logger
()
...
...
test/table/predict_table.py
→
test
1
/table/predict_table.py
浏览文件 @
bab0b22d
...
...
@@ -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
test
1
.table.matcher
import
distance
,
compute_iou
from
test
1
.utility
import
parse_args
import
test
1
.table.predict_structure
as
predict_strture
logger
=
get_logger
()
...
...
test/table/table_metric/__init__.py
→
test
1
/table/table_metric/__init__.py
浏览文件 @
bab0b22d
文件已移动
test/table/table_metric/parallel.py
→
test
1
/table/table_metric/parallel.py
浏览文件 @
bab0b22d
文件已移动
test/table/table_metric/table_metric.py
→
test
1
/table/table_metric/table_metric.py
浏览文件 @
bab0b22d
文件已移动
test/table/tablepyxl/__init__.py
→
test
1
/table/tablepyxl/__init__.py
浏览文件 @
bab0b22d
文件已移动
test/table/tablepyxl/style.py
→
test
1
/table/tablepyxl/style.py
浏览文件 @
bab0b22d
文件已移动
test/table/tablepyxl/tablepyxl.py
→
test
1
/table/tablepyxl/tablepyxl.py
浏览文件 @
bab0b22d
文件已移动
test/utility.py
→
test
1
/utility.py
浏览文件 @
bab0b22d
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录