handwriting-generation icon indicating copy to clipboard operation
handwriting-generation copied to clipboard

Online handwriting

Open JFSomerset opened this issue 6 years ago • 1 comments

Would it be possible to output the text along a straight(er) line with this configuration?

JFSomerset avatar Feb 24 '19 12:02 JFSomerset

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

Grzego avatar Feb 26 '19 16:02 Grzego