Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online handwriting #12

Open
JFSomerset opened this issue Feb 24, 2019 · 1 comment
Open

Online handwriting #12

JFSomerset opened this issue Feb 24, 2019 · 1 comment

Comments

@JFSomerset
Copy link

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

@Grzego
Copy link
Owner

Grzego commented Feb 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants