Ask Your Question

How to stablize video in realtime?

asked 2016-10-08 08:08:42 -0600

hjl240 gravatar image

updated 2016-10-08 10:25:46 -0600

Tetragramm gravatar image

I know openCV3.1.0 now has a video stabilization class, and I read and run the given example cpp code(.\sources\samples\cpp\videostab.cpp), I find it first run "estimating motion", and then process frames. The result is good, but it is not run in realtime.

So I want to ask, how to modify the given code("videostab.cpp") to stablize video in realtime? Or now opencv3.1.0 can not implement video stabilization in realtime by using the video stabilization class?

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-10-08 10:25:11 -0600

Tetragramm gravatar image

videostab.cpp is not meant for real-time. Unfortunately, at this time, there are no complete OpenCV classes for doing real-time stabilization.

However, it is certainly possible to do. Take a look here for a somewhat sophisticated method that handles full affine motion.

edit flag offensive delete link more


Thank you!

hjl240 gravatar imagehjl240 ( 2016-10-09 20:16:53 -0600 )edit

Question Tools

1 follower


Asked: 2016-10-08 08:08:42 -0600

Seen: 778 times

Last updated: Oct 08 '16