inkstitch / inkstitch

Ink/Stitch: an Inkscape extension for machine embroidery design
https://inkstitch.org
GNU General Public License v3.0
911 stars 168 forks source link

Path finding digitization of bitmaps #1952

Open tyrosinase opened 1 year ago

tyrosinase commented 1 year ago

I have been messing around with Drawing Bot, because I feel like it's thiiiiiis close to being perfect for generating stitchable SVGs. Give it a few tweaks, like changing the frequency as well as amplitude (because this may work for pen plotters but will probably result in too-short stitches for embroidery machines: https://joelpedersenarts.com/items/qwigCpCe ), and maybe tweaking the algorithm so it does less layering of colors, and we could have a few less issues like #1951 where someone is trying to digitize a heavily shaded image conventionally.

I haven't quite figured out how to optimize the colors, but it does pretty well for monochrome-ish images:

2022-12-11_17-50

becomes

2022-12-11_19-09

which if you set it to manual stitches, simulates realistically as

2022-12-11_18-52

Now, that's only like a 45x60mm picture so it's pretty lo-res, because I didn't want to wait all day for my machine to simulate it. And the machine's busy so I haven't gotten around to actually seeing how well it stitches, but it feels like something that could work.

Not sure if it's something that is worth hauling into Ink/Stitch or if it just needs a tutorial on how to get it to produce SVGs that convert easily to stitching, though.

Anyway: https://github.com/SonarSonic/DrawingBotV3

lexelby commented 1 year ago

Cool!! I don't think it's going to work to bring it into Ink/Stitch, because that project is Java-based. We could potentially add an extension to process the output of drawingbot into something more usable for embroidery, though.