justdolearning / word-render

word render for text recognition, ocr, generate sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

word-render

  • word renderer to generate training data for text recognition
  • using pygame to render the image
  • multi-threads to accerate

requirement

  • numpy
  • PIL
  • pygame recommend to install Anaconda

usage

python generate.py

Also. you can change the threads you wants in generate.py, default is 10 this will generate a image with 18 characters, includeing 0~9 and X which is the character used in id card number in china.

demo image

img

About

word render for text recognition, ocr, generate sample

License:MIT License


Languages

Language:Python 100.0%