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

Handwriting slants up #6

Open
mattlevine32 opened this issue Apr 12, 2023 · 1 comment
Open

Handwriting slants up #6

mattlevine32 opened this issue Apr 12, 2023 · 1 comment

Comments

@mattlevine32
Copy link

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?

@X-rayLaser
Copy link
Owner

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.

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