An optical flow based simple object tracker
I recently developed a tracker as part of an assignment which basically uses optical flow to track an object. The process is as follows:
A bounding box is chosen by the user from the first frame.
After the first frame, for each next frame, the following process is followed:
Calculate gradients in both x and y directions.
Use gaussian filter to create the following matrix
Calculate difference between the last frame and the current frame to calculate the following matrix
Calculate the displacements in x and y directions using the following equation
Draw new bounding box on the current image
GitHub - thanif/Object-Tracker: An optical flow based simple object tracker
An optical flow based simple object tracker. Contribute to thanif/Object-Tracker development by creating an account on…