Ask Your Question

cvblob and cvBlobsLib

asked 2012-08-24 15:58:38 -0500

perr0 gravatar image

updated 2014-01-28 17:13:27 -0500

ngrennan gravatar image

Is it possible to use cvblob or cvBlobsLib with ROS?

If yes, how can I do it?

edit retag flag offensive close merge delete


Well, I was able to find the blobs using this code: But then I need to track them and I'm having a hard time trying to make ir. I can find their centroids, but I loose track of which is which during program execution.

perr0 gravatar image perr0  ( 2012-08-28 02:49:48 -0500 )edit

@pgorczak, does this SimpleBlobDetector have tracking capabilities? As far as I could understand reading the link you provided, it does not, but maybe you have seen something in this regard.

perr0 gravatar image perr0  ( 2012-08-28 02:52:31 -0500 )edit

That's why I was trying to use cvBlob, as it has "Basic blob tracking" out of the box.

perr0 gravatar image perr0  ( 2012-08-28 02:53:30 -0500 )edit

The beauty of the new OpenCV is, that you can plug in any matcher behind the blob detector. A simple k-nearest-neighbors (knn) matcher could be enough. cvBlob probably does something like that in the background.

pgorczak gravatar image pgorczak  ( 2012-08-29 11:02:43 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-26 02:15:09 -0500

pgorczak gravatar image

If you want to run blob detection with OpenCV, I would recommend taking a look at SimpleBlobDetector. You can easily convert any ROS image message to an OpenCV-Mat using cv_bridge and take it from there.

If the above mentioned detector suits your needs, I'll give you more details on how to make it work.

edit flag offensive delete link more


Can you please give the more details about that. I have converted the ros image into opencv-mat using cv_bridge. What shall i do next i.e. how i can configure or install cvblobs with ROS and what depencies shall i add in package.xml and also the in cmakelist ! I am using ROS-Hydro

jashanvir gravatar image jashanvir  ( 2014-06-13 09:00:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-08-24 15:58:38 -0500

Seen: 1,602 times

Last updated: Aug 26 '12