Faster than simple blob detector?

asked 2016-05-17 06:26:22 -0500

dmen gravatar image

updated 2016-05-17 06:32:23 -0500

Capturing from a webcam and using the simple blob detector to find a blob of white pixels - I use threshold to make a binary image that should contain just the single blob I need, and I only need it's x,y position in the image. Is there a faster way to do this?

I found this code, that uses AS3 but is faster than anything I've seen thus far. Could it be easily ported? It uses floodFill and getColorBoundsRect - I know openCV has floodFill but not sure about the other.

edit retag flag offensive close merge delete



If you only got a single blob on a black background, do not use the complete blob detector interface, but simply run a findContours, with the outer parameter activated, then use the returned contour to work on. I got real time processing using this approach, which should be enough for webcam images.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-05-17 06:54:21 -0500 )edit