Ask Your Question

bonevale's profile - activity

2020-01-08 13:19:09 -0600 received badge  Famous Question (source)
2019-12-26 15:32:04 -0600 received badge  Famous Question (source)
2019-04-04 13:32:10 -0600 received badge  Notable Question (source)
2019-02-10 07:38:27 -0600 received badge  Notable Question (source)
2018-10-08 09:07:32 -0600 received badge  Popular Question (source)
2018-07-20 05:57:48 -0600 received badge  Popular Question (source)
2017-07-08 09:15:01 -0600 received badge  Enthusiast
2017-07-07 14:05:20 -0600 commented question Looking for a way to select distinct feature from an object and count them. They're not individual contours as they are connected.

So far I am thinking training cascade. If anyone has other ideas please comment, thank you.

2017-07-07 13:37:19 -0600 commented answer Looking for a thinning/skeletonizing algorithm with opencv in python.

I had a pretty tough time installing opencv the first time around so I am not planning on rebuilding it, however thanks for the suggestion. I am looking more so for pseudo code or an algorithm which I can implement myself if need be.

2017-07-06 12:19:18 -0600 received badge  Editor (source)
2017-07-06 12:17:22 -0600 asked a question Looking for a way to select distinct feature from an object and count them. They're not individual contours as they are connected.

I am looking to count the number of little circles or ovals on the lines. I am relatively new to opencv so I am open to any suggestions that get me started thank you. This is the image. C:\fakepath\ROOT003 - 1200 DPI.jpg

2017-07-03 11:29:16 -0600 asked a question Looking for a thinning/skeletonizing algorithm with opencv in python.

Currently I am implementing the zhang-suen method but my images are 300 ppi and it takes a couple of minutes. Can someone point me in the right direction. I need the skeleton to be connected and there are parallel lines so the the algorithm I've seen in python that uses open and closing is not good. Thanks

2017-05-20 14:10:05 -0600 commented question drawContours error: (-215) npoints > 0 in function drawContours

Yes when I call rectangle to draw around the contours instead of drawContours I get the behavior I want where all the little dots are selected so the rest of my function works as desired. And yes before all this my image is given a threshold.

2017-05-20 11:55:30 -0600 commented question drawContours error: (-215) npoints > 0 in function drawContours

I found the post and tried the tip but it didn't fix my error, thanks though.

2017-05-20 11:05:01 -0600 asked a question drawContours error: (-215) npoints > 0 in function drawContours

here's my code

gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
labelNum, labelImg, contours, GoCs = cv2.connectedComponentsWithStats(gray)

    for c in contours:
        x,y,w,h,size = c
        if size <= 100:
            cv2.drawContours(image, [c], 0, 0)