Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
d72d4165
"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "acd479ea46cea22d346536bb4337f96035afa3ac"
Commit
d72d4165
authored
Dec 15, 2020
by
littletomatodonkey
Browse files
fix doc
parent
89305e1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
StyleText/README_ch.md
StyleText/README_ch.md
+9
-6
No files found.
StyleText/README_ch.md
View file @
d72d4165
简体中文 |
[
English
](
README.md
)
## Style Text
## Style Text
### 目录
### 目录
...
@@ -56,6 +58,7 @@ fusion_generator:
...
@@ -56,6 +58,7 @@ fusion_generator:
#### 合成单张图
#### 合成单张图
输入一张风格图和一段文字语料,运行tools/synth_image,合成单张图片,结果图像保存在当前目录下:
输入一张风格图和一段文字语料,运行tools/synth_image,合成单张图片,结果图像保存在当前目录下:
```
python
```
python
python3
-
m
tools
.
synth_image
-
c
configs
/
config
.
yml
--
style_image
examples
/
style_images
/
2.j
pg
--
text_corpus
PaddleOCR
--
language
en
python3
-
m
tools
.
synth_image
-
c
configs
/
config
.
yml
--
style_image
examples
/
style_images
/
2.j
pg
--
text_corpus
PaddleOCR
--
language
en
```
```
...
@@ -73,13 +76,13 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
...
@@ -73,13 +76,13 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
</div>
</div>
除此之外,程序还会生成并保存中间结果
`fake_bg.jpg`
:为风格参考图去掉文字后的背景;
除此之外,程序还会生成并保存中间结果
`fake_bg.jpg`
:为风格参考图去掉文字后的背景;
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"doc/images/7.jpg"
width=
"300"
>
<img
src=
"doc/images/7.jpg"
width=
"300"
>
</div>
</div>
`fake_text.jpg`
:是用提供的字符串,仿照风格参考图中文字的风格,生成在灰色背景上的文字图片。
`fake_text.jpg`
:是用提供的字符串,仿照风格参考图中文字的风格,生成在灰色背景上的文字图片。
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"doc/images/8.jpg"
width=
"300"
>
<img
src=
"doc/images/8.jpg"
width=
"300"
>
</div>
</div>
...
@@ -99,11 +102,11 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
...
@@ -99,11 +102,11 @@ python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_
*
`method`
:语料生成方法,目前有
`FileCorpus`
和
`EnNumCorpus`
可选。如果使用
`EnNumCorpus`
,则不需要填写其他配置,否则需要修改
`corpus_file`
和
`language`
;
*
`method`
:语料生成方法,目前有
`FileCorpus`
和
`EnNumCorpus`
可选。如果使用
`EnNumCorpus`
,则不需要填写其他配置,否则需要修改
`corpus_file`
和
`language`
;
*
`language`
:语料的语种;
*
`language`
:语料的语种;
*
`corpus_file`
: 语料文件路径。
*
`corpus_file`
: 语料文件路径。
StyleText也提供了一批中英韩5万张通用场景数据用作文本风格图像,便于合成场景丰富的文本图像,下图给出了一些示例。
StyleText也提供了一批中英韩5万张通用场景数据用作文本风格图像,便于合成场景丰富的文本图像,下图给出了一些示例。
中英韩5万张通用场景数据:
[
下载地址
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/style_text/chkoen_5w.tar
)
中英韩5万张通用场景数据:
[
下载地址
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/style_text/chkoen_5w.tar
)
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"doc/images/5.png"
width=
"800"
>
<img
src=
"doc/images/5.png"
width=
"800"
>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment