Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_41840029
PaddleOCR
提交
7fd7982a
P
PaddleOCR
项目概览
weixin_41840029
/
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看板
未验证
提交
7fd7982a
编写于
10月 24, 2022
作者:
littletomatodonkey
提交者:
GitHub
10月 24, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix pic (#8068)
上级
fd983fc4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
7 deletion
+9
-7
README.md
README.md
+1
-1
README_ch.md
README_ch.md
+1
-1
ppocr/utils/visual.py
ppocr/utils/visual.py
+5
-3
ppstructure/README.md
ppstructure/README.md
+1
-1
ppstructure/README_ch.md
ppstructure/README_ch.md
+1
-1
未找到文件。
README.md
浏览文件 @
7fd7982a
...
...
@@ -199,7 +199,7 @@ PaddleOCR support a variety of cutting-edge algorithms related to OCR, and devel
-
SER (Semantic entity recognition)
<div
align=
"center"
>
<img
src=
"https://user-images.githubusercontent.com/
25809855/186094456-01a1dd11-1433-4437-9ab2-6480ac94ec0a
.png"
width=
"600"
>
<img
src=
"https://user-images.githubusercontent.com/
14270174/197464552-69de557f-edff-4c7f-acbf-069df1ba097f
.png"
width=
"600"
>
</div>
<div
align=
"center"
>
...
...
README_ch.md
浏览文件 @
7fd7982a
...
...
@@ -237,7 +237,7 @@ PaddleOCR旨在打造一套丰富、领先、且实用的OCR工具库,助力
</div>
<div
align=
"center"
>
<img
src=
"https://user-images.githubusercontent.com/
25809855/186094456-01a1dd11-1433-4437-9ab2-6480ac94ec0a
.png"
width=
"600"
>
<img
src=
"https://user-images.githubusercontent.com/
14270174/197464552-69de557f-edff-4c7f-acbf-069df1ba097f
.png"
width=
"600"
>
</div>
-
RE(关系提取)
...
...
ppocr/utils/visual.py
浏览文件 @
7fd7982a
...
...
@@ -51,20 +51,22 @@ def draw_ser_results(image,
bbox
=
trans_poly_to_bbox
(
ocr_info
[
"points"
])
draw_box_txt
(
bbox
,
text
,
draw
,
font
,
font_size
,
color
)
img_new
=
Image
.
blend
(
image
,
img_new
,
0.
5
)
img_new
=
Image
.
blend
(
image
,
img_new
,
0.
7
)
return
np
.
array
(
img_new
)
def
draw_box_txt
(
bbox
,
text
,
draw
,
font
,
font_size
,
color
):
# draw ocr results outline
bbox
=
((
bbox
[
0
],
bbox
[
1
]),
(
bbox
[
2
],
bbox
[
3
]))
draw
.
rectangle
(
bbox
,
fill
=
color
)
# draw ocr results
start_y
=
max
(
0
,
bbox
[
0
][
1
]
-
font_size
)
tw
=
font
.
getsize
(
text
)[
0
]
th
=
font
.
getsize
(
text
)[
1
]
start_y
=
max
(
0
,
bbox
[
0
][
1
]
-
th
)
draw
.
rectangle
(
[(
bbox
[
0
][
0
]
+
1
,
start_y
),
(
bbox
[
0
][
0
]
+
tw
+
1
,
start_y
+
font_size
)],
[(
bbox
[
0
][
0
]
+
1
,
start_y
),
(
bbox
[
0
][
0
]
+
tw
+
1
,
start_y
+
th
)],
fill
=
(
0
,
0
,
255
))
draw
.
text
((
bbox
[
0
][
0
]
+
1
,
start_y
),
text
,
fill
=
(
255
,
255
,
255
),
font
=
font
)
...
...
ppstructure/README.md
浏览文件 @
7fd7982a
...
...
@@ -62,7 +62,7 @@ The following figure shows the effect of layout recovery based on the results of
Different colored boxes in the figure represent different categories.
<div
align=
"center"
>
<img
src=
"https://user-images.githubusercontent.com/
25809855/186094456-01a1dd11-1433-4437-9ab2-6480ac94ec0a
.png"
width=
"600"
>
<img
src=
"https://user-images.githubusercontent.com/
14270174/197464552-69de557f-edff-4c7f-acbf-069df1ba097f
.png"
width=
"600"
>
</div>
<div
align=
"center"
>
...
...
ppstructure/README_ch.md
浏览文件 @
7fd7982a
...
...
@@ -78,7 +78,7 @@ PP-StructureV2支持各个模块独立使用或灵活搭配,如,可以单独
</div>
<div
align=
"center"
>
<img
src=
"https://user-images.githubusercontent.com/
25809855/186094456-01a1dd11-1433-4437-9ab2-6480ac94ec0a
.png"
width=
"600"
>
<img
src=
"https://user-images.githubusercontent.com/
14270174/197464552-69de557f-edff-4c7f-acbf-069df1ba097f
.png"
width=
"600"
>
</div>
<div
align=
"center"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录