Object detection and Camshift interaction

asked 2015-01-19 14:09:19 -0500

Hello everybody.

I'm trying to track objects in a web camera feed using Camshift but have a hard time to understand how to use Camshift together with the object detection.

Objects are being detected fine using absdiff and findContours and placed into boundingRect's.

Problems is that I need continuous detection since all objects entering the area needs to be tracked. Also detected objects might split up(like two persons entering the area very close and then take separate paths through the area). Tracking needs to continue even if the object stops to move for a longer period of time.

So I wonder how can I pass my detected objects to the tracker which is supposed to use Camshift?

I just started with OpenCV and image processing so all ideas are very welcome.


edit retag flag offensive close merge delete