Skip to content

Automate handwriting on paper with this python script

Notifications You must be signed in to change notification settings

Azarattum/AutoHandwriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoHandwriter

Automate handwriting on paper with this python script

Features:

  • Randomized handwriting generation
  • Paper detection
  • Perspective warping
  • Post processing

Demo:

  1. Converting to gray scale
  2. Removing noise
  3. Edge detection
  4. Fixing gaps
  5. Largerst rectangle contour detection
  6. Text generation
  7. Warped perspective
  8. Combined images
  9. Post processing
  10. Final result

Usage:

Clone the repo

git clone https://github.com/Azarattum/AutoHandwriter.git
cd AutoHandwriter

Install the dependencies with pip

pip install -r requirements.txt

Put your images into ./data/images/

Create a directory for program output: ./out

Run the script.

python . <pdf>/validate
  • <pdf> - Path to the source pdf for text extraction
  • validate - Validates the dataset for correct object detection

Third-party libraries:

  • opencv-python - Unofficial pre-built CPU-only OpenCV packages for Python.
  • numpy - Fundamental package for array computing with Python.
  • pdfminer - PDF parser and analyzer.

About

Automate handwriting on paper with this python script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages