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

Create shapes on long-hold pen. #25

Open
dotancohen opened this issue Aug 22, 2023 · 2 comments
Open

Create shapes on long-hold pen. #25

dotancohen opened this issue Aug 22, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@dotancohen
Copy link

The Samsung Note device has a terrific feature for drawing shapes. With the stylus, one can draw e.g. a circle and at the end of the stroke not lift the stylus. The program will then change the hand-drawn circle to a vector that approximates the hand-drawn shape. This works with circles, rectangles, squares, stars, and other shapes.

The ability to convert hand-drawn shapes to vectors if the stylus is not raised would be a terrific addition to Notable.

Example video:
https://www.youtube.com/watch?v=LD_YHwCF_ZU

@olup
Copy link
Owner

olup commented Aug 28, 2023

I agree, and this was one of the original features I wanted to add. I have been considering different paths to get there, but nothing has stood out as a perfect way.
In my view it either uses a simple algo to straighten lines or a complex machine learning system to detect the shape. But either way I haven't worked on an implementation.

If you know some code that does it, whatever the language, that could be a good start to implement the feature

@olup olup added the help wanted Extra attention is needed label Aug 28, 2023
@dotancohen
Copy link
Author

dotancohen commented Aug 28, 2023

Googling for algorithm to create circles from hand-drawn shapes yielded a few results, most notably this SE question on Recognition of handwritten circles, diamonds and rectangles. But yes, information is difficult to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants