Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleOCR
提交
e174e9ed
P
PaddleOCR
项目概览
s920243400
/
PaddleOCR
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleOCR
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
e174e9ed
编写于
6月 29, 2021
作者:
M
MissPenguin
提交者:
GitHub
6月 29, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3184 from WenmuZhou/table2
delete user code
上级
52651b33
3927a960
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
23 deletion
+1
-23
test1/MANIFEST.in
test1/MANIFEST.in
+1
-1
test1/paddlestructure.py
test1/paddlestructure.py
+0
-20
test1/setup.py
test1/setup.py
+0
-2
未找到文件。
test1/MANIFEST.in
浏览文件 @
e174e9ed
...
@@ -5,5 +5,5 @@ recursive-include ppocr/utils *.txt utility.py logging.py network.py
...
@@ -5,5 +5,5 @@ recursive-include ppocr/utils *.txt utility.py logging.py network.py
recursive-include ppocr/data/ *.py
recursive-include ppocr/data/ *.py
recursive-include ppocr/postprocess *.py
recursive-include ppocr/postprocess *.py
recursive-include tools/infer *.py
recursive-include tools/infer *.py
recursive-include
ppstructure
*.py
recursive-include
test1
*.py
test1/paddlestructure.py
浏览文件 @
e174e9ed
...
@@ -146,23 +146,3 @@ def main():
...
@@ -146,23 +146,3 @@ def main():
logger
.
info
(
item
[
'res'
])
logger
.
info
(
item
[
'res'
])
save_res
(
result
,
save_folder
,
img_name
)
save_res
(
result
,
save_folder
,
img_name
)
logger
.
info
(
'result save to {}'
.
format
(
os
.
path
.
join
(
save_folder
,
img_name
)))
logger
.
info
(
'result save to {}'
.
format
(
os
.
path
.
join
(
save_folder
,
img_name
)))
if
__name__
==
'__main__'
:
table_engine
=
PaddleStructure
(
show_log
=
True
)
img_path
=
'../test/test_imgs/PMC1173095_006_00.png'
img
=
cv2
.
imread
(
img_path
)
result
=
table_engine
(
img
)
save_res
(
result
,
'/Users/zhoujun20/Desktop/工作相关/table/table_pr/PaddleOCR/output/table'
,
os
.
path
.
basename
(
img_path
).
split
(
'.'
)[
0
])
for
line
in
result
:
print
(
line
)
from
PIL
import
Image
font_path
=
'../doc/fonts/simfang.ttf'
image
=
Image
.
open
(
img_path
).
convert
(
'RGB'
)
im_show
=
draw_result
(
image
,
result
,
font_path
=
font_path
)
im_show
=
Image
.
fromarray
(
im_show
)
im_show
.
save
(
'result.jpg'
)
\ No newline at end of file
test1/setup.py
浏览文件 @
e174e9ed
...
@@ -20,8 +20,6 @@ import shutil
...
@@ -20,8 +20,6 @@ import shutil
with
open
(
'../requirements.txt'
,
encoding
=
"utf-8-sig"
)
as
f
:
with
open
(
'../requirements.txt'
,
encoding
=
"utf-8-sig"
)
as
f
:
requirements
=
f
.
readlines
()
requirements
=
f
.
readlines
()
requirements
.
append
(
'tqdm'
)
requirements
.
append
(
'tqdm'
)
requirements
.
append
(
'layoutparser'
)
requirements
.
append
(
'iopath'
)
def
readme
():
def
readme
():
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录