From 78d3349e1d02da84c0fd964cf45d2f54461cd9c2 Mon Sep 17 00:00:00 2001 From: weishengyu Date: Wed, 16 Dec 2020 20:14:26 +0800 Subject: [PATCH] add notice in size of style images --- StyleText/README.md | 5 ++++- StyleText/README_ch.md | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/StyleText/README.md b/StyleText/README.md index 8f77777c..648b1267 100644 --- a/StyleText/README.md +++ b/StyleText/README.md @@ -72,7 +72,10 @@ fusion_generator: python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_images/2.jpg --text_corpus PaddleOCR --language en ``` -* Note: The language options is correspond to the corpus. Currently, the tool only supports English, Simplified Chinese and Korean. +* Note 1: The language options is correspond to the corpus. Currently, the tool only supports English, Simplified Chinese and Korean. +* Note 2: Synth-Text is mainly used to generate images for OCR recognition models. + So the height of style images should be around 32 pixels. Images in other sizes may behave poorly. + For example, enter the following image and corpus `PaddleOCR`. diff --git a/StyleText/README_ch.md b/StyleText/README_ch.md index 0fa015e1..0dd5822b 100644 --- a/StyleText/README_ch.md +++ b/StyleText/README_ch.md @@ -63,7 +63,10 @@ fusion_generator: ```python python3 -m tools.synth_image -c configs/config.yml --style_image examples/style_images/2.jpg --text_corpus PaddleOCR --language en ``` -* 注意:语言选项和语料相对应,目前该工具只支持英文、简体中文和韩语。 +* 注1:语言选项和语料相对应,目前该工具只支持英文、简体中文和韩语。 +* 注2:Style-Text生成的数据主要应用于OCR识别场景。基于当前PaddleOCR识别模型的设计,我们主要支持高度在32左右的风格图像。 + 如果输入图像尺寸相差过多,效果可能不佳。 + 例如,输入如下图片和语料"PaddleOCR": -- GitLab