pytorch-handwriting-synthesis-toolkit
pytorch-handwriting-synthesis-toolkit copied to clipboard
Handwriting slants up
Thanks for making this project - it's super useful and well documented.
I've noticed that the generated handwriting tends to slant as opposed to being written flat on a line like how https://www.calligrapher.ai/ does it.
Do you have any ideas on how to solve for this?
I see what you mean. One approach is to find a principal direction of a slant and measure its slope. Then, one could construct a simple rotation matrix and use it to transform the coordinates of all points. This method should address most simple cases where the handwriting has a consistent slant.
The problem is that the slant can vary within the same sentence. For example, this algorithm will fail If the text goes up and down.