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
cdfa38c9
Unverified
Commit
cdfa38c9
authored
Dec 15, 2020
by
dyning
Committed by
GitHub
Dec 15, 2020
Browse files
Update README_ch.md
parent
cf0d24e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
StyleText/README_ch.md
StyleText/README_ch.md
+7
-1
No files found.
StyleText/README_ch.md
View file @
cdfa38c9
...
@@ -55,25 +55,31 @@ fusion_generator:
...
@@ -55,25 +55,31 @@ 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
```
```
*
注意:语言选项和语料相对应,目前该工具只支持英文、简体中文和韩语。
*
注意:语言选项和语料相对应,目前该工具只支持英文、简体中文和韩语。
例如,输入如下图片和语料"PaddleOCR":
例如,输入如下图片和语料"PaddleOCR":
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"examples/style_images/2.jpg"
width=
"300"
>
<img
src=
"examples/style_images/2.jpg"
width=
"300"
>
</div>
</div>
得到结果fake_fusion.jpg:
得到结果fake_fusion.jpg:
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"doc/images/4.jpg"
width=
"300"
>
<img
src=
"doc/images/4.jpg"
width=
"300"
>
</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>
...
...
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