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

Linedraw algorithm can't get the result #22

Open
binchen1998 opened this issue Dec 3, 2021 · 1 comment
Open

Linedraw algorithm can't get the result #22

binchen1998 opened this issue Dec 3, 2021 · 1 comment

Comments

@binchen1998
Copy link

Hi, this is a great work that I like so much! Thanks for your work.

The problem is I have a bright image(a photo captured by camera and I adjust it to a very bright version, see attachment) input into the Lindraw algorithm, but get blank result.

I have tried original linedraw.py, it works fine. I attach the image file and the output of linedraw.py, please take a look.

Tuning the parameters makes no help.

Original image:
test

linedraw.py output:
20211203141457

@mitxela
Copy link
Owner

mitxela commented Dec 3, 2021

There aren't many differences between the original algorithm and plotterfun version, the main difference is that plotterfun sometimes resizes the image. For some reason the thin lines are being ignored, if you zoom in the image it works (but this probably wasn't the result you're after):
image
I could possibly fiddle with the algorithm to work better in this situation, or try to figure out where the difference is from the original, but if you're trying to put through linedraw something that's already a line drawing, there are better tools available - inkscape's Trace Bitmap, for instance.

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