Please I need a complete project report on object detection and tracking algorithm..
Probably any algorithm under it. Thank you
Posts: 6,843
Threads: 4
Joined: Mar 2015
moving object detection and tracking using image subtraction in matlab
Today I finished implementing an algorithm for object detection and tracking using image subtraction. Ultimate goal being to use mean shift based algorithm for obstacle detection I tried to implement this algo first in MATLAB for a warmup. It is a very simple algorithm based on a very simple idea.
Idea : When you substract two subsequent frames clicked by your cam, the part of image which does not change (background) gets subtracted to give zero intensity (black). Only the part of image moved (moving object) dont get reduced to zero as intensity of pixels of two subsequent frames are different. So you get non zero intensity for pixels corresponding moved object. Rest is simple. Just convert the image into binary and obtain the centroid of largest area of connected pixels !! You get your result.
Algorithm:
I got the idea of this algorithm from a paper “Implementation of an Automated Single Camera Object Tracking System Using Frame Differencing and Dynamic Template Matching” by guys from IIT-Kanpur and NIT-Nagpur which can be obtained from here. Although I modified it to directly take and operate on rgb images. The algorithm is as follows :
Grab ith frame.
Grab subtract it from (i-3)th frame.
Convert the image into binary.
Fill small holes.
Label the connected pixels.
Run the loop to number of labels and find the label for maximum area.
Find centroid of the obtained area.
Mark the area if you just want to track or use the centroid information for other applications.
Go to step 1.
Here subtraction is done with (i-3)th frame keeping in mind slow moving objects. I implemented this algorithm completely in MATLAB. My code is right now a little prone to occlusion and is having less frames per second.