r/computervision • u/SalemIII • Sep 03 '26
Showcase I built a classical image processing algorithm that counts textile threads with high accuracy, source in body!
Hello everyone!
I'm an engineering student, during my last internship at a medical device company, i was FORCED to count threads by hand, hated it so much that I wrote code that automated it, tried to turn it into a startup, not going all that great, so I thought I'll just document and release it, works on an Orange Pi and camera module, tested on a real production line, let me know if you have any remarks or questions, check it out!
235
Upvotes



64
u/BlobbyMcBlobber Sep 03 '26
Classic CV is so much fun
3
u/Abinash07 Sep 04 '26
Yess FFTs. We did something similar in our course assignment. We had to remove diagonal lines ie noise from images
2
u/EffectiveAgitated137 Sep 04 '26
How did u test for the ground truth ?
2
u/BeverlyGodoy Sep 05 '26
Any specific reason you choose c++?
2
u/herocoding Sep 05 '26
Really interesting, thank you very much for sharing.
Would you mind adding one, two, a few reference images (here, and/or in your repo) ("8-bit 1024-by-1024 monochrome raw frame"), please?
2
u/bergdev1 Sep 05 '26
Curious what it would take to count tree rings
3
u/RoboMind Sep 04 '26
If you know the thickness of a single thread in pixels, you can simply use the ratio of white and black pixels, right?