Help on blob detection

41 views
Skip to first unread message

André Caron

unread,
May 11, 2011, 12:43:48 PM5/11/11
to ctypes-opencv
Hi,

I've just found out about PyOpenCV and I think it looks promising!
I'm porting some MATLAB code to OpenCV and I'm quite fond of Python.
This project requires blob detection using connected components
analysis, amongst other things. I found a tutorial for blob detection
in OpenCV (http://opencv.willowgarage.com/wiki/cvBlobsLib) but I can't
find the corresponding classes/functions in PyOpenCV.

So far, I've located the "pyopencv.creatgeBlobDetectorCC()" and its
"DetecNewBlob" method, but I'm at a loss as to how I need to call it.
Has anyone tried to implement blob detection using PyOpenCV? Are
there any test cases or something that I can look at?

Thanks,
André

jc.b...@alliancevision.com

unread,
May 12, 2011, 3:08:06 AM5/12/11
to ctypes...@googlegroups.com
Hi Andr�,

You can also use the "Contours" fonctions of OpenCV ("findContours", then
"arcLength", "contourArea", "boundingRect", "minAreaRect",
"minEnclosingCircle", "fitEllipse"...). Contours will also allow you to
measure blob holes.
There are also some interesting functions in the
"scipy.ndimage.measurements" and "scipy.ndimage.morphology" modules.

As sometimes OpenCV returns strange measurements with very small blobs (null
perimeters and aeras),
i have developped my own functions, which are a "mix" of "pyopencv" and
"scipy.ndimage"

Best Regards.

JC BENOIT


Hi,

Thanks,
Andr�

--
You received this message because you are subscribed to the Google Groups
"ctypes-opencv" group.
To post to this group, send email to ctypes...@googlegroups.com.
To unsubscribe from this group, send email to
ctypes-openc...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/ctypes-opencv?hl=en.

Reply all
Reply to author
Forward
0 new messages