Up to this point, we have familiarized ourselves with the concepts of motion detection, object detection, and object tracking. You are probably anxious to put this newfound knowledge to good use in a real-life scenario. Let's do just that by tracking pedestrians in a video from a surveillance camera.
You can find a surveillance video inside the OpenCV repository at samples/data/vtest.avi. A copy of this video is located inside this book's GitHub repository at chapter08/pedestrians.avi.
Let's lay out a plan and then implement the application!