AdamSpannbauer / python_video_stab

A Python package to stabilize videos using OpenCV
https://adamspannbauer.github.io/python_video_stab/html/index.html
MIT License
682 stars 118 forks source link

What should I do with fast-moving videos? #112

Closed timbuktu031 closed 4 years ago

timbuktu031 commented 4 years ago

Hi~ I want to apply this to a video shot with a racing drone. so movement is fast. I tried converting it without using any options.

https://youtu.be/3SsQxaArs-U

Which option is best to make the possible black margins invisible? Is it possible that the stabilized images is always in the center of the screen?

AdamSpannbauer commented 4 years ago

Hi @timbuktu031

Which option is best to make the possible black margins invisible?

You can check out the using borders section of the README for different options you have for the margins.

Is it possible that the stabilized images is always in the center of the screen?

Not really, the whole way that it is performing the stabilization is by moving the image around to try and keep the contents of the image in the same spot. (i.e the camera shifted but to keep the trees in the frame in the same spot, the image would need to be moved.

AdamSpannbauer commented 4 years ago

Please re-open if this if my response doesn't address your issue adequately.