Giter Club home page Giter Club logo

text-to-handwriting's Introduction

Text to handwriting !!!

Get given text written on a ruled page automatically

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.

Install and Use

  • Download zip or clone this repo and cd into the repo folder
  • Install dependencies : pip install -r requirements.txt OR pip3 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

Works the best with multiple pages and long text!

Additional Information :

  • 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)

More Info

The paper
The man behind it all. Alex Graves
What I am using

text-to-handwriting's People

Contributors

nikhil3000 avatar pnshiralkar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

text-to-handwriting's Issues

'tensorflow' has no attribute 'ConfigProto'

Traceback (most recent call last):
File "handwrite.py", line 66, in
main()
File "handwrite.py", line 51, in main
config = tf.ConfigProto(
AttributeError: module 'tensorflow' has no attribute 'ConfigProto'

Update: Downgrading TensorFlow to version 1 helped solve this issue.

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.