Tracking feature points in video

This chapter is about reading, writing, and processing video sequences. The objective is to be able to analyze a complete video sequence. As an example, in this recipe, you will learn how to perform temporal analysis of the sequence in order to track feature points as they move from frame to frame.

How to do it...

To start the tracking process, the first thing to do is to detect feature points in an initial frame. You then try to track these points in the next frame. You must find where these points are now located in this new frame. Obviously, since we are dealing with a video sequence, there is a good chance that the object on which the feature points are found has moved (the motion can also be due to camera motion). ...

Get OpenCV 2 Computer Vision Application Programming Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.