[HN Gopher] Show HN: Tool that turns your images into plotter-li... ___________________________________________________________________ Show HN: Tool that turns your images into plotter-like line drawings Author : javierbyte Score : 201 points Date : 2021-05-20 17:22 UTC (5 hours ago) (HTM) web link (javier.xyz) (TXT) w3m dump (javier.xyz) | [deleted] | jvanderbot wrote: | Just a warning. If you upload your own headshot in the standard | light-on-light linkedin background style. You _will_ come out | looking like a horror film drawing. There isn 't enough contrast | so it makes your face very dark and jagged. | | I love it. | atum47 wrote: | Cool concept. I was trying to develop something along those | lines. I'd like to feed an image to an algorithm and have it draw | it, like this: https://www.youtube.com/watch?v=b8mwFDJgWR0 (but | better) | blhack wrote: | WOW this is cool! Going to take these files and put them into my | lasercutter to see what I get. Really really cool thing! | javierbyte wrote: | Author here, that sounds soo cool! If you decide to try please | let me know if you need any support! | ev1 wrote: | For anyone on Brave or Firefox with protection enabled: you have | to turn it off, because canvas randomisation will just result it | in it permanently drawing a mess of lines covering the entire | square forever. | breadzeppelin__ wrote: | I run brave and did not experience this issue. | torh wrote: | Impressive. Very artsy. | daniellarusso wrote: | Pretty cool! Nice work, dude. | Aspos wrote: | Using mobilenet to detect facial features. Smart! Would suggest | to go one step further and remove background before processing | the face. | dmje wrote: | Love it, that's ace, thanks for posting! | diehunde wrote: | Pretty cool! Too bad most of my photos are in HEIC format and the | site won't load them. | javierbyte wrote: | Thanks! Author here, are you testing with the HEIC files from | your computers? To me it seems that iOS does not have issues | with HEIC but probably it is doing some conversion before. | petercooper wrote: | Along similar lines, does anyone know of any good way to turn | images into 'hedcut' WSJ style art? I've seen a few attempts but | they don't tend to be very good, but it feels like something | that's solvable, even if with a GAN or something. | zerkten wrote: | WSJ have a site for this at https://aiportrait.wsj.com/. | aharris6 wrote: | Ditherit.com might do a decent rough approximation | NelsonMinar wrote: | There's a fun and vibrant plotter art community clustered around | the AxiDraw and similar low cost at-home plotters. Lots of fun | stuff, including several image converters like this. | | Just yesterday I was playing with the Flow Imager plugin for | VPype. Similar trick of using line density, but in this case it's | using a randomized curved flowfield for texture. The fun thing is | the experimental "flow along image edges" feature where you get | some lines tracing edges in the original picture. | https://github.com/serycjon/vpype-flow-imager | pfd1986 wrote: | I wonder if the number of lines can be a measure of Kolmogorov | complexity for an image... | | Neat idea regardless. | ash_dev wrote: | cool concept, struggling to get good facial definitions. | | https://a.tmp.ninja/obxwcfzK.png | moehm wrote: | Can you try again with "Single Line" on? | javierbyte wrote: | Also, you can try reducing the "contrast" and "definition" | settings. I think in this case the hoodie is taking a lot of | the lines, I'll take a look, thanks! | roland35 wrote: | This is great! I just created a pen holding adapter for my 3d | printer so I can do some plots. I still need to find a good way | to efficiently convert SVG files to gcode, but this will be a | good start. | | Inkscape has a gcode generation tool, but it requires some tweaks | to work on my prusa 3d printer. Still a work in progress! | londons_explore wrote: | It's just a list of X, Y coordinates... | | An untested python one-liner: '\n'.join(["G0 | X"+x+" Y"+y for x,y in coords]) | | Grab the code for homing and stuff from the start of another | gcode file that works. | javierbyte wrote: | Yes, in this case the SVG is a list of coordinate pairs, | should be fairly easy to extract. | | https://github.com/javierbyte/pintr/blob/master/lib/svg.js#L. | .. | | * Update to add a link to the code that generates the SVG. | eyegor wrote: | Svg is typically a lot more complicated than coordinate | points... https://developer.mozilla.org/en- | US/docs/Web/SVG/Tutorial/Pa... | reputet wrote: | The drawing process looks similar to the Venom transformation! | | https://youtu.be/ph26HHK9FZg?t=36 | heliophobicdude wrote: | Great work! | | Does anyone have any plotter recommendations? | joshu wrote: | on older plotters: | | there were many manufacturers. the ones that seem to be higher | quality were HP and Roland. alps made a tiny one that was | repackaged for commodore, atari, etc. and there were a plethora | of other manufacturers (graphtec, houston instruments, and so | on) | | check ebay for "pen plotter" but beware that many are quite | large and shipping will be expensive. | | i currently have a HP DXL 7575a (a large roller plotter) and a | Roland DXY-1150 (small flatbed). the roland was shipped but the | hp i had to pick up locally. roland still has the manual on the | site for the 1150, but it required a wacky power supply that | took some effort to find. for HP stuff make sure it has RS232 | and not HP-IB interfaces or whatever wacky stuff. also, | different plotters used different languages. Roland's RDGL and | HP's HPGL were easy enough to implement directly from the | documentation... | | many of them don't work because various belts have died. my HP | fired right up. | | one ongoing concern is that pens are no longer made so you have | to fight over scraps on ebay. | | modern plotters: | | get an axidraw. it is nice and lets you use standard pens. | tekstar wrote: | I snagged an HP7475a off a local buy and sell site recently for | $60. Came with a serial-to-plotter cable (which I only realized | after splicing that cable, working out the wiring, and finding | it was already the cable I needed :( ) | | Then I bought a cheap 3d printer and made a few of these, which | fit the "fat" sharpies: | https://www.thingiverse.com/thing:1261805 | | I need to adjust that print for "ultra fine" sharpies in order | to do prints like what this website is producing though. | myself248 wrote: | Hang around the industrial auction sites like Bidspotter. I | just scored a 1980s-era Draftmaster II for $60 and it came with | a pile of pens. | enlightens wrote: | https://www.axidraw.com/ | paulgb wrote: | +1 for AxiDraw if you're not into restoring a vintage | machine. I've been impressed with the build quality of mine | (it's going on four years with no issues). | | I'm also a fan of the Saxi driver software. Paired with a | Raspberry Pi, it gives you a web-based interface to an | AxiDraw so that you don't have to physically connect your | computer to the plotter. | | https://github.com/nornagon/saxi | gregmac wrote: | In the commercial space, I think "wide format printers" have | totally replaced plotters at this point. They're basically big | ink jet printers, though usually a bit more sophisticated | (often 6 or more inks, including variants like "matte black" | and "photo black" and "gray"). The quality is very impressive, | you can literally print posters or frameable photos on it if | you have the right paper. | | "XY plotters" are still around but seem to be very niche | (emulating hand writing) or DIY/hobby stuff. | | I remember being in an engineering office of some sort as a | kid, fascinated by watching the multi-pen plotter [1] drawing | some kind of technical drawing. It had a pen carousel to change | colors, and a little robot gripper to hold it. Finding | information on these (from the 2 minutes of searching I did) | seems quite hard, so it seems like they probably went out of | fashion before the internet was a thing. | | [1] https://encyclopedia2.thefreedictionary.com/XY+plotter | joshu wrote: | there is a big plotter enthusiast community. i was able to | find full documentation for my late 80's plotter online | easily enough. | | plotters are still made today, they're just called "vinyl | cutters" and don't have the pen changers anymore. | | perhaps let the people who actually know the answer to the | given question do the writing? ___________________________________________________________________ (page generated 2021-05-20 23:00 UTC)