Are there any practical libraries for generating simulated handwriting from a string of text?
This does not mean using a handwriting-like font. Rather, I'm referring to handwriting where each letters is rendered slightly differently and connected as in the normal rhythm of human handwriting.
I've had some success using RNNLIB (original, Github fork) which uses AI neural networks.
There's a demo link on the Github readme and also at http://www.cs.toronto.edu/~graves/handwriting.html
Sample:
Note that neither demo has particularly good support for numbers (mostly unreadable) and capital letters aren't as well covered as their lowercase counterparts. Sometimes the generated images can be missing letters or just trail off.
Since it's neural network based, it's likely that some of these problems are a result of or could be improved by training data.
You can take a look at Muse-CGH, an open source tool for stylish Computer Generated Handwritings.
Muse can synthesize stylish English handwriting from plain texts. Its algorithm carefully connects strokes of adjacent characters to create cursive words and uses random perturbations to ensure that every character is unique in the rendering results. Moreover, it can also generate handwriting animations!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With