Build an Object Tracker

Follow step-by-step instructions to create a simple object tracker.

In this lesson, we’ll use some OpenCV functions to create an object tracker that will track an object from a video. In the first frame, we’ll be able to select the object we want to track. Then the object should be tracked throughout the video. Object trackers can be used for surveillance, traffic monitoring, sports analysis, augmented reality, and many other things.

With this object tracker, we’ll be able to draw a tracking box in the first frame of the video, and then that box will track the object. Follow the guidelines to complete the partial code given in the “Try it out” section at the end of this lesson.

Get hands-on with 1200+ tech skills courses.