Its time for your laptop to write assignments for you!
Click to see Example input and Example output .
Implementation of handwriting generation with use of recurrent neural networks in tensorflow. Based on Alex Graves paper (https://arxiv.org/abs/1308.0850).
This project uses pretrained model and some implementation based on the paper from this repo.
- Download zip or clone this repo and cd into the repo folder
- Install dependencies :
pip install -r requirements.txt
ORpip3 install -r requirements.txt
- Run and Use :
python handwrite.py --text "Some text with minimum 50 characters" <optional arguments>
python handwrite.py --text-file /path/to/input/text.file <optional arguments>
- Optional Arguments :
--style
: Style of handwriting (0 to 7, defaults to 0)--bias
: Bias in handwriting. More bias is more unclear handwriting (0.00 to 1.00 , defaults to 0.9)--color
: Color of handwriting in RGB format ,defaults to 0,0,150 (ballpen blue)--output
: Path to output pdf file (E.g. ~/assignments/ads1.pdf), defaults to ./handwritten.pdf- For more information on usage, run
python handwrite.py -h
- Additional Outputs: The pages folder stores the handwritten pages in .jpg and .png (transparent bg) format
- Modification: To modify, see generate.py file
- Train model: To modify, see train.py file (Refer this repo for more)
The paper
The man behind it all. Alex Graves
What I am using