# Video Stabilization using Optical Flow in OpenCV [C++]

> Video stabilization by optical flow and median.. I have to say. This is only alpha version.

- Canonical URL: https://www.funvisiontutorials.com/blog/video-stabilization-optical-flow-opencv-cpp/
- Author: Vladimir Kucera
- Published: 2016-11-20
- Updated: 2026-02-20
- Topics: Object tracking, Object detection
- Videos: https://www.youtube.com/watch?v=GKqRX3Mt7UY

## Video stabilization by optical flow and median..

[Image: opencv image stabilization optical flow median]

I have to say. This is only alpha version. First of all, I want to release video stabilization together with noise compensation, where i still have some mainly performance issue.. Secondary in some cases the result is not that good. Lets say, I need to fix better choice of the tracked features to stabiliza image..

Secondary, I case that the scene is changing the video is little bit shaky.. Some second order filter or Kalman filter should resolve this easily.

Enjoy the example

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