# Opencv tracking example

> Median flow tracker code coming soon Simple median flow tracker base od goodFeaturesToTrack calcOpticalFlowPyrLK TODO complete forward backwards tracking…

- Canonical URL: https://www.funvisiontutorials.com/blog/opencv-tracking-example/
- Author: Vladimir Kucera
- Published: 2016-03-14
- Updated: 2023-11-01
- Topics: Object tracking, Installing & building OpenCV
- Videos: https://www.youtube.com/watch?v=ykHSb_EtCjI

## Median flow tracker code coming soon

[Image: The median flow tracker running on video: a blue and red box around a face, covered in the green goodFeaturesToTrack points it follows between frames]

-   Simple median flow tracker base od goodFeaturesToTrack
-    calcOpticalFlowPyrLK
-   TODO complete forward backwards tracking and feature filtering. I already have forward, backwards LK tracker, without filtering (just prepared NORM computation).
-   TODO complete redetection. White rectangles are redetection with online learning by RTrees opencv 3.1 support. Rtrees work great. **I only need better features**. Do you have any advice or tips?
-   From the initial Rectangle is generated several positive examples and negatives from the rest of image. Rtrees learning and prediction can run very fast. I still haven't got a good features. Feature extracting took some time to.
-   TODO Forward backward + redetection.
-   300 lines of code

**Final result will be**

### **TLD tracker**

I would like to release this in 4 next tutorials.

#### Forward backwards median flow tracker

#### Rtrees learning ( new features ) and prediction with single scale detection sliding window

#### Complete TLD tracker

#### Slow Multi target TLD tracker

Share please

Video: https://www.youtube.com/watch?v=ykHSb_EtCjI

## Feel free to share this article.. Thanks a lot
