3 ms·
Computer vision and embroidery
- healeycodes 5y agoI welcome any improvements to my naive exploration in this article! I've received two emails from readers: - One suggested converting RGB to a color space that better matches human visual perception, like CIELAB. - Another suggested compressing the color space by using K-means clustering (by guessing K as the number of threads)
- solarmist 5y agoWhat are DMC threads? I tried to read the article, but without knowing that I don’t really get anything.
- healeycodes 5y agoThey are the colored threads that you stitch with. DMC is a brand but it’s also the colloquial term for the fixed set of colors that are commonly used and sold. I’ll see if I can make that clearer — thanks.
- sleepybrett 5y agoSo pantone but for dyed fiber instead of inks on paper...
- pfortuny 5y agoWhy not use Cannyedge detection for edge detection? It should work pretty well once you have a greyscale image, and then circle detection as you already do.
- Animats 5y agoA color reference would help. Stitch something with standard thread samples and use that for comparison.
- harperlee 5y agoIs that a good idea? I don’t do embroidery but I’d guess people mix threads of different colour in the same area to merge them. As long as the image is original you can discard those areas as false positives instead of new colours; if you compress the image, that subtlety per thread is lost.
- bkberry352 5y agoK means clustering the color space is certainly an interesting idea, though you might need n+1 colors as I’d guess the background color of the hoop is often prevalent. Also: it seems like your query function is actually building the tree on each call? If so, that would slow it down a lot (though the lru cache is still a great idea!)
- aidionidis 5y agoThis is absolute genius, love it! As a full time java dev, I would really like to start doing some embroidery as a anti-stress strategy. (ugh, I cant even talk without emmbeding at least one desing pattern into my words)
- jalk 5y agoI hope you succeed - all my attempts at similar activities, just brings me into "how can this be automated" mode
- kevin_thibedeau 5y ago> I don’t account for lighting conditions (how would you do this?) I'd start by shooting against a white background with full spectrum lighting. Then you can compensate for the camera processing to get roughly calibrated brightness.