开发者

Blob ID matching over multiple frames in C++ (image analysis)

开发者 https://www.devze.com 2023-01-03 14:30 出处:网络
I\'m working on a blob matching and tracking library in C++. Currently I\'m using OpenCV to detect blobs and try to match blobs in a new frame by checking the position, velocity and size of the blob.

I'm working on a blob matching and tracking library in C++. Currently I'm using OpenCV to detect blobs and try to match blobs in a new frame by checking the position, velocity and size of the blob. This works quite okay and I'm receiving a high blob match rate (95% or higher).

Sometimes blobs fall out of the image or new blobs appear. Now I need to give matched blobs the same ID as they had before. I'm wondering if there are typical or commonly use开发者_运维百科d techniques for doing this. Or even some keywords I can use to Google on.

Thanks


http://en.wikipedia.org/wiki/Blob_extraction

I assume you have your blobs in a binary image, simply floodfill each blob with a different color/id, and register overlapping blobs between frames with the same id.


CCV is used for multiple finger tracking for multi-touch environments. Check out their tracking code. It uses a function trackKnn which uses k nearest neighbour algorithm.

You can also use Kalman Filter if blobs collide each other. Check out this SO

0

精彩评论

暂无评论...
验证码 换一张
取 消