Giter Site home page Giter Site logo

textgenerator's Introduction

TextGenerator

  • This is a tools for ocr dataset, text detection, fonts classification dataset generate.
  • 这是一个用来生成ocr数据,文字检测数据,字体识别的最方便的工具

实现的功能:

  • 生成基于不同语料的,不同字体、字号、颜色、旋转角度的文字贴图
  • 支持多进程快速生成
  • 文字贴图按照指定的布局模式填充到布局块中
  • 在图像中寻找平滑区域当作布局块
  • 支持文字区域的图块抠取导出(导出json文件,txt文件和图片文件,可生成voc数据,coco格式coming soon!)
  • 支持用户自己配置各项生成配(图像读取,生成路径,各种概率)

效果预览

生成图片示例:

文字贴图示例:

使用方式

  • 环境安装(Python3.6+,建议使用conda环境)

    # step 1
    pip install requirements.txt
    # step 2
    sh make.sh
    
  • 编辑配置文件config.yml(可选)

  • 执行生成脚本

    python3 run.py
    
  • 生成的数据

    生成的数据存放在config.yml中的provider> layout> out_put_dir指定的目录下。

textgenerator's People

Contributors

bboyhanat avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.