code Mapping opencv Tracking video vision

Simplest 20-lines OpenCV video stabilizer [w/ code]

A simple and short video stabilizer with OpenCV.

Just sharing a simple recipe for a video stabilizer in OpenCV based on goodFeaturesToTrack() and calcOpticalFlowPyrLK().
Well… it’s a bit more than 20 lines, but it is short. And it doesn’t work for every kind of video (although the results are funny anyway! :).


The original video is from Vimeo:
Under Creative Commons license, attribution goes to: Anton Withagen