Blob tracking algorithm

前端 未结 3 873
暗喜
暗喜 2020-12-30 10:56

I\'m trying to create simple blob tracking using OpenCV. I have detected the blobs using findcontours. I would like to give those blobs a constant ID.

I have collec

3条回答
  •  無奈伤痛
    2020-12-30 11:11

    u can use cvblobslib library for blob detection ...

    1. if your inter-frame blob movement is less than the inter blob distance..that is blob displacement is less than the inter blob distance then you can create a list and keep adding the blob in each current frame which fall in the neighbourhood of the blobs in the previous frame...
    2. if your blobs have some constant features like ellipticity...aspect ratio(after fitting a bounding box to it) you can group the blobs with these features into a list..

提交回复
热议问题