Giter VIP home page Giter VIP logo

chinese_ocr_synthetic_data's Introduction

Chinese_OCR_synthetic_data


The progress was used to generate synthetic dataset for Chinese OCR.

Here we used Augmenter to augment out output characters in images, including rotate, skew, shear and distort. And you can change characters.txt file to use other characters. The main function can be found in the synthetic_data.py file.

The python package you may need:

  • tqdm
  • PIL(pillow)
  • pathlib
  • cv2(opencv)
  • numpy
  • codecs
  • glob

本程序用于合成中文OCR数据库。

本程序使用了Augmenter库,以对输出的图像进行增强图片中的文本,其中包括旋转、倾斜、剪切和扭曲。这些形变的参数可以在utils.py中找到并修改。 在characters.txt中存放着所有的中文字符,如果想更换训练的字符请替换该文件。 main函数在synthetic_data.py中,可以按需要做修改。

使用之前可能需要安装一下的包:

  • tqdm
  • PIL(pillow)
  • pathlib
  • cv2(opencv)
  • numpy
  • codecs
  • glob

test

chinese_ocr_synthetic_data's People

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.