Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleOCR
提交
b5334047
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看板
提交
b5334047
编写于
3月 02, 2021
作者:
W
WenmuZhou
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dygraph' of
https://github.com/PaddlePaddle/PaddleOCR
into fix_doc
上级
20a9d308
f1cd0c35
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
5 addition
and
9 deletion
+5
-9
README.md
README.md
+1
-1
README_ch.md
README_ch.md
+1
-1
deploy/cpp_infer/src/ocr_rec.cpp
deploy/cpp_infer/src/ocr_rec.cpp
+1
-1
ppocr/data/imaug/make_shrink_map.py
ppocr/data/imaug/make_shrink_map.py
+0
-1
tools/infer/predict_det.py
tools/infer/predict_det.py
+1
-4
tools/infer_det.py
tools/infer_det.py
+1
-1
未找到文件。
README.md
浏览文件 @
b5334047
...
@@ -42,7 +42,7 @@ The above pictures are the visualizations of the general ppocr_server model. For
...
@@ -42,7 +42,7 @@ The above pictures are the visualizations of the general ppocr_server model. For
-
Scan the QR code below with your Wechat, you can access to official technical exchange group. Look forward to your participation.
-
Scan the QR code below with your Wechat, you can access to official technical exchange group. Look forward to your participation.
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"
.
/doc/joinus.PNG"
width =
"200"
height =
"200"
/>
<img
src=
"
https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.0
/doc/joinus.PNG"
width =
"200"
height =
"200"
/>
</div>
</div>
...
...
README_ch.md
浏览文件 @
b5334047
...
@@ -46,7 +46,7 @@ PaddleOCR同时支持动态图与静态图两种编程范式
...
@@ -46,7 +46,7 @@ PaddleOCR同时支持动态图与静态图两种编程范式
-
微信扫描二维码加入官方交流群,获得更高效的问题答疑,与各行各业开发者充分交流,期待您的加入。
-
微信扫描二维码加入官方交流群,获得更高效的问题答疑,与各行各业开发者充分交流,期待您的加入。
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"
.
/doc/joinus.PNG"
width =
"200"
height =
"200"
/>
<img
src=
"
https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.0
/doc/joinus.PNG"
width =
"200"
height =
"200"
/>
</div>
</div>
## 快速体验
## 快速体验
...
...
deploy/cpp_infer/src/ocr_rec.cpp
浏览文件 @
b5334047
...
@@ -76,7 +76,7 @@ void CRNNRecognizer::Run(std::vector<std::vector<std::vector<int>>> boxes,
...
@@ -76,7 +76,7 @@ void CRNNRecognizer::Run(std::vector<std::vector<std::vector<int>>> boxes,
float
(
*
std
::
max_element
(
&
predict_batch
[
n
*
predict_shape
[
2
]],
float
(
*
std
::
max_element
(
&
predict_batch
[
n
*
predict_shape
[
2
]],
&
predict_batch
[(
n
+
1
)
*
predict_shape
[
2
]]));
&
predict_batch
[(
n
+
1
)
*
predict_shape
[
2
]]));
if
(
argmax_idx
>
0
&&
(
!
(
i
>
0
&&
argmax_idx
==
last_index
)))
{
if
(
argmax_idx
>
0
&&
(
!
(
n
>
0
&&
argmax_idx
==
last_index
)))
{
score
+=
max_value
;
score
+=
max_value
;
count
+=
1
;
count
+=
1
;
str_res
.
push_back
(
label_list_
[
argmax_idx
]);
str_res
.
push_back
(
label_list_
[
argmax_idx
]);
...
...
ppocr/data/imaug/make_shrink_map.py
浏览文件 @
b5334047
...
@@ -32,7 +32,6 @@ class MakeShrinkMap(object):
...
@@ -32,7 +32,6 @@ class MakeShrinkMap(object):
text_polys
,
ignore_tags
=
self
.
validate_polygons
(
text_polys
,
text_polys
,
ignore_tags
=
self
.
validate_polygons
(
text_polys
,
ignore_tags
,
h
,
w
)
ignore_tags
,
h
,
w
)
gt
=
np
.
zeros
((
h
,
w
),
dtype
=
np
.
float32
)
gt
=
np
.
zeros
((
h
,
w
),
dtype
=
np
.
float32
)
# gt = np.zeros((1, h, w), dtype=np.float32)
mask
=
np
.
ones
((
h
,
w
),
dtype
=
np
.
float32
)
mask
=
np
.
ones
((
h
,
w
),
dtype
=
np
.
float32
)
for
i
in
range
(
len
(
text_polys
)):
for
i
in
range
(
len
(
text_polys
)):
polygon
=
text_polys
[
i
]
polygon
=
text_polys
[
i
]
...
...
tools/infer/predict_det.py
浏览文件 @
b5334047
...
@@ -39,10 +39,7 @@ class TextDetector(object):
...
@@ -39,10 +39,7 @@ class TextDetector(object):
self
.
args
=
args
self
.
args
=
args
self
.
det_algorithm
=
args
.
det_algorithm
self
.
det_algorithm
=
args
.
det_algorithm
pre_process_list
=
[{
pre_process_list
=
[{
'DetResizeForTest'
:
{
'DetResizeForTest'
:
None
'limit_side_len'
:
args
.
det_limit_side_len
,
'limit_type'
:
args
.
det_limit_type
}
},
{
},
{
'NormalizeImage'
:
{
'NormalizeImage'
:
{
'std'
:
[
0.229
,
0.224
,
0.225
],
'std'
:
[
0.229
,
0.224
,
0.225
],
...
...
tools/infer_det.py
浏览文件 @
b5334047
...
@@ -97,7 +97,7 @@ def main():
...
@@ -97,7 +97,7 @@ def main():
preds
=
model
(
images
)
preds
=
model
(
images
)
post_result
=
post_process_class
(
preds
,
shape_list
)
post_result
=
post_process_class
(
preds
,
shape_list
)
boxes
=
post_result
[
0
][
'points'
]
boxes
=
post_result
[
0
][
'points'
]
# write resul
e
# write resul
t
dt_boxes_json
=
[]
dt_boxes_json
=
[]
for
box
in
boxes
:
for
box
in
boxes
:
tmp_json
=
{
"transcription"
:
""
}
tmp_json
=
{
"transcription"
:
""
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录