Home

Awesome

English Vesrion

This is an revised version from SynthText and Chinese SynthText, which is more suitable to generate customized data, e.g. generating multiple data same as the text data in game. It works for both Chinese and English.

Modify

To-do list

Enviroment

Run app

python GUIstart.py

Usage Steps

Step 1: Prepare background image

Click open data path button, Choose a folder and confirm,the image number under the chosen folder will be popped up as the picture shows

<img src="./util/source/step1.png" height = "200" />

Step 2: Select font style by two ways

  1. The first way is to select from the combobox which is provided by current tool;
  2. The second way is to click add font button and choose the font file what users want.
    The chosen font will be listed in fontlist. You can clear all the fonts by clicking clear button. Deleting one specific font is not supported so far. <img src="./util/source/step2.png" height = "200" />

Step 3: Input the character property what you want.

Here is the example for character “WINNER WINNER CHICKEN DINNER”.

<img src="./util/source/step3.png" height = "200" />

Step 4: Generate data

Click the button generate data , generate detection label and generate recognition label step by step, it will show the messages as the pictures show.

<img src="./util/source/step4.png" height = "200" />
222,230,601,230,601,271,222,271,WINNER WINNER CHICKEN DINNER

#value oder
(left,top) ---> (right,top)
                    |
                    |
                    v
(left,bottom) <--- (right,bottom)
test3_000_000.png WINNER WINNER CHICKEN DINNER

Visualization

Here is the example after Usage Steps

<img src="./util/source/test3_vis.png" width = "400" height = "250" />

中文

这是基于SynthTextChinese SynthText进行修改的项目,适用于生成自定义数据,如生成大量跟游戏文字相同的数据。 它适用于中文和英文。

主要修改

环境

运行程序

python GUIstart.py

使用步骤

步骤一: 准备背景图片

open data path 按键, 选择一个文件并且确定,所选文件夹下的图像编号将作为图片弹出

<img src="./util/source/step1.png" height = "200" />

步骤二: 选择格式的了两种方法

  1. 第一种方法是在复选框种选择想要的格式,选完后点击comfirm按钮确认;
  2. 第二种方法是点击add font按钮,选择想要的格式。 被选择的格式会添加在右边的列表中,可以用clear按钮来清除所有,暂时不支持清楚单个格式 <img src="./util/source/step2.png" height = "200" />

步骤三: 输入想要的文本

这里有个文本样式作为参考 文本内容:“大吉大利,今晚吃鸡” 参数解析:

<img src="./util/source/step3.png" height = "200" />

步骤四: 生成数据

依次按下按钮 generate data , generate detection label 和 generate recognition label , 按完后会弹窗显示生成的本文信息

<img src="./util/source/step4.png" height = "200" />
222,230,601,230,601,271,222,271,WINNER WINNER CHICKEN DINNER

#坐标点顺序
(左边,顶部) ---> (右边,顶部)
                    |
                    |
                    v
(左边,底部) <--- (右边,底部)
test3_000_000.png WINNER WINNER CHICKEN DINNER

可视化

<img src="./util/source/test2_vis.png" width = "400" height = "250"/>