handwriting-generation
handwriting-generation copied to clipboard
Online handwriting
Would it be possible to output the text along a straight(er) line with this configuration?
The reason why generated handwriting is not on straight line is the dataset. Most examples are skewed because that's how most people write on whiteboard.
So the easiest approach (I guess) would require "fixing" the dataset.
One thing that could work is doing linear regression over lines (or parts of them) and then shift every point accordingly. You could experiment with this (or other ideas) by using some additional preprocessing here in code (line[:, :2]
will give an array of all (x, y)
points, on which you can for example run linear regression).