• This repository has been archived on 20/Apr/2020
  • Stars
    star
    213
  • Rank 184,571 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Plain text to handwriting generator.

Handwritten

Homework could have been so much easier if only it could be submitted as a typed copy.
Using Alex Graves' paper on handwriting generation is a step I liked. This script uses his amazing paper (actually the free service he has set up online) to generate handwritten homework for given text.

Requirements

  • python3.x
  • pip install requests
  • pip install pillow

Or you can do pipenv install --python3

Usage

usage: get_hand.py [-h] (-f FILE | -t TEXT) [-s STYLE] [-b BIAS] [-p POSITION]
                   [-c COLOR]

Plain text to handwriting generator.

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  text file to generate handwriting from (default: None)
  -t TEXT, --text TEXT  text to generate handwriting from (default: None)
  -s STYLE, --style STYLE
                        handwriting style from 0 to 5, where 5 is random style
                        (default: 5)
  -b BIAS, --bias BIAS  handwriting bias from 0.1 to 1 (default: 0.8)
  -p POSITION, --position POSITION
                        start at specific position (default: 0)
  -c COLOR, --color COLOR
                        add custom RGB color values to generated text
                        (default: 0,0,0)

Example

Generating handwritten text page from a file (with no more than 100 characters in each line) with handwriting style 4:

python get_hand.py -f desc.txt -s 4
python make_page.py

Now open pages/1.png:

sample handwriting

Generating handwritten text using a string in blue color & custom bias with handwriting style 2:

python get_hand.py -t "Homework could have been easier" -s 2 -c 0,0,200 -b 0.85

Now open images/0.png:

blue ink

More Info

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

More Repositories

1

lorentz-embeddings

Embed arbitrary graphs in Hyperbolic space
Python
72
star
2

pytongue

Write python code in any language
Python
57
star
3

openJudge

LAN hosted programming contest judge
Python
41
star
4

jaypore_ci

A small, very flexible, powerful CI system. Works offline and is configured in Python.
Python
36
star
5

IndRNN

PyTorch implementation of IndRNN
Python
16
star
6

bottle-tools

Common tools to be used in conjunction with the bottle framework
Python
14
star
7

FusionNet

Fusion Net Implementation for SQUAD [DEPRECATED] https://arxiv.org/abs/1711.07341
Python
12
star
8

redbull

Develop JSON endpoints fast!
Python
11
star
9

lanchat

Distributed LAN chatting program.
Python
9
star
10

hungarian-layer

Hungarian Layer: Logics Empowered Neural Architecture [UNMAINTAINED]
Python
8
star
11

reimagined-chainsaw

Scipts to help me out
Python
6
star
12

sigsearch

Search for algorithms via type signature
Python
4
star
13

BloodHound

PoC for email based location tracking.
Python
4
star
14

I-am-freeman

Convert recitation into Morgan Freeman's voice
Python
4
star
15

pyj-db

Explore how databases are built
Python
3
star
16

staticsite

Super simple Jinja2 based static site generator
HTML
3
star
17

SoWrong

Slides/Code for Pycon India 2019 talk
Python
3
star
18

PyJaipurTelegramBot

A good little bot that keeps the conversation clean
Python
3
star
19

judge-interface

Interface for the openjudge based on Django[DEPRECATED]
Python
3
star
20

metricwatch

Watch metrics over time from multiple repositories in a single place.
Python
2
star
21

evo-site

A website that evolves with the people that visit it.
HTML
2
star
22

toy-coin

A toy exploration of how block chains are supposed to work.
Jupyter Notebook
2
star
23

functional

Exploring functional programming via Python
Python
2
star
24

ulam-spiral

Code to generate a Ulam Spiral
Python
2
star
25

gmailcopy

Copies gmail to your local system
Python
2
star
26

Mechanical-QA

Automated Question Answering Systems
Python
2
star
27

mltoweb

Sklearn models to basic bottle web app
Python
2
star
28

cam-utils

Laptop camera utility scripts. [DEPRECATED]
Python
1
star
29

missing-people

Missing people in India
Python
1
star
30

webstory

WIP: A story meant to teach a new web dev about the world of websites.
HTML
1
star
31

webfapi

JSON file API
Python
1
star
32

HumanGreetings

Allow custom greetings for new joinees in a telegram group.
Haskell
1
star
33

notebooks

A collection of Jupyter notebooks
Jupyter Notebook
1
star
34

tampercheck

A simple (but expensive) PoC to check if documents have been tampered with
Python
1
star
35

pseudo-dns

A dynamic DNS like service over http [DEPRECATED]
Python
1
star
36

BookRead

Espeak Manager for reading plaintext books[MERGED with reimagined-chainsaw project]
Python
1
star
37

hear-and-obey

A python script to execute python scripts over network[UNMAINTAINED]
Python
1
star
38

ClassTree

Statically generate class trees for Python files
Python
1
star
39

summerOfAlgo-DA

Place to collaborate over code for https://pyjaipur.github.io/Summer-of-Algorithm/
Python
1
star
40

emitra-gyaan

Code for emitra-gyaan
Jupyter Notebook
1
star
41

torchzoo

Machine Learning research with PyTorch
Python
1
star
42

dataflow

A data flow diagram editor to generate Machine learning pipeline scripts.[DEPRECATED]
Python
1
star
43

Attendance

Automated Image based class attendance[NOT MAINTAINED]
Python
1
star
44

3d-scanner

A line laser based scanner hack. [DEPRECATED]
Python
1
star