Automate handwriting on paper with this python script
- Randomized handwriting generation
- Paper detection
- Perspective warping
- Post processing
- Converting to gray scale
- Removing noise
- Edge detection
- Fixing gaps
- Largerst rectangle contour detection
- Text generation
- Warped perspective
- Combined images
- Post processing
- Final result
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
- opencv-python - Unofficial pre-built CPU-only OpenCV packages for Python.
- numpy - Fundamental package for array computing with Python.
- pdfminer - PDF parser and analyzer.