+ 1

How to find out number of straw's in a given packet through image processing using open CV python

10th Mar 2019, 2:24 PM
Abhishek Desai
Abhishek Desai - avatar
2 ответов
+ 6
Assuming you have a good top-down view of the packet of straws, you should be able to select a good threshold value to binarize the image so that the edge of straws appear white and the inner hollow part of the straws appear black. With a bit more enhancements if necessary, you should be left with a binary image consisting of blobs. You should then be able to detect and count the number of blobs using SimpleBlobDetector. https://stackoverflow.com/questions/8076889/how-to-use-opencv-simpleblobdetector
10th Mar 2019, 2:38 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Thanks
11th Mar 2019, 7:59 PM
Abhishek Desai
Abhishek Desai - avatar