Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
b92501fa
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看板
未验证
提交
b92501fa
编写于
10月 24, 2022
作者:
littletomatodonkey
提交者:
GitHub
10月 24, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix pic (#8067)
上级
3cf676f4
变更
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
浏览文件 @
b92501fa
...
@@ -190,7 +190,7 @@ PaddleOCR support a variety of cutting-edge algorithms related to OCR, and devel
...
@@ -190,7 +190,7 @@ PaddleOCR support a variety of cutting-edge algorithms related to OCR, and devel
-
SER (Semantic entity recognition)
-
SER (Semantic entity recognition)
<div
align=
"center"
>
<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>
<div
align=
"center"
>
<div
align=
"center"
>
...
...
README_ch.md
浏览文件 @
b92501fa
...
@@ -222,7 +222,7 @@ PaddleOCR旨在打造一套丰富、领先、且实用的OCR工具库,助力
...
@@ -222,7 +222,7 @@ PaddleOCR旨在打造一套丰富、领先、且实用的OCR工具库,助力
</div>
</div>
<div
align=
"center"
>
<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>
-
RE(关系提取)
-
RE(关系提取)
...
...
ppocr/utils/visual.py
浏览文件 @
b92501fa
...
@@ -51,20 +51,22 @@ def draw_ser_results(image,
...
@@ -51,20 +51,22 @@ def draw_ser_results(image,
bbox
=
trans_poly_to_bbox
(
ocr_info
[
"points"
])
bbox
=
trans_poly_to_bbox
(
ocr_info
[
"points"
])
draw_box_txt
(
bbox
,
text
,
draw
,
font
,
font_size
,
color
)
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
)
return
np
.
array
(
img_new
)
def
draw_box_txt
(
bbox
,
text
,
draw
,
font
,
font_size
,
color
):
def
draw_box_txt
(
bbox
,
text
,
draw
,
font
,
font_size
,
color
):
# draw ocr results outline
# draw ocr results outline
bbox
=
((
bbox
[
0
],
bbox
[
1
]),
(
bbox
[
2
],
bbox
[
3
]))
bbox
=
((
bbox
[
0
],
bbox
[
1
]),
(
bbox
[
2
],
bbox
[
3
]))
draw
.
rectangle
(
bbox
,
fill
=
color
)
draw
.
rectangle
(
bbox
,
fill
=
color
)
# draw ocr results
# draw ocr results
start_y
=
max
(
0
,
bbox
[
0
][
1
]
-
font_size
)
tw
=
font
.
getsize
(
text
)[
0
]
tw
=
font
.
getsize
(
text
)[
0
]
th
=
font
.
getsize
(
text
)[
1
]
start_y
=
max
(
0
,
bbox
[
0
][
1
]
-
th
)
draw
.
rectangle
(
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
))
fill
=
(
0
,
0
,
255
))
draw
.
text
((
bbox
[
0
][
0
]
+
1
,
start_y
),
text
,
fill
=
(
255
,
255
,
255
),
font
=
font
)
draw
.
text
((
bbox
[
0
][
0
]
+
1
,
start_y
),
text
,
fill
=
(
255
,
255
,
255
),
font
=
font
)
...
...
ppstructure/README.md
浏览文件 @
b92501fa
...
@@ -62,7 +62,7 @@ The following figure shows the effect of layout recovery based on the results of
...
@@ -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.
Different colored boxes in the figure represent different categories.
<div
align=
"center"
>
<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>
<div
align=
"center"
>
<div
align=
"center"
>
...
...
ppstructure/README_ch.md
浏览文件 @
b92501fa
...
@@ -78,7 +78,7 @@ PP-StructureV2支持各个模块独立使用或灵活搭配,如,可以单独
...
@@ -78,7 +78,7 @@ PP-StructureV2支持各个模块独立使用或灵活搭配,如,可以单独
</div>
</div>
<div
align=
"center"
>
<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>
<div
align=
"center"
>
<div
align=
"center"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录