Faster than simple blob detector?

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

dmen gravatar image

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

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. http://play.blog2t.net/fast-blob-dete...

edit retag flag offensive close merge delete

Comments

2

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 -0600 )edit