Build an Object Tracker

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

In this lesson, we’ll use some OpenCV functions we learned in this course to create an object tracker.

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 the lesson.

Video

Read the video

First, let’s download the video attached above. We’ll read this video. As a video is read frame by frame, we need to track the object in each frame.

Note: If you can’t recall how to read the video, go to this ...