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

Auto set min border size to fully capture video #28

Closed AdamSpannbauer closed 5 years ago

AdamSpannbauer commented 5 years ago

Find how to set minimum area needed for frames to never be cut off by transforms.

~This feature is not a requirement for updated release to pypi; investigate how difficult and add to release if keeps on schedule.~

changing task from investigating to implementing

AdamSpannbauer commented 5 years ago

This looks easy enough to add to tasks to do before release: cv2.transform(pointsToTransform, M)

updating issue

AdamSpannbauer commented 5 years ago

this option should be under: border_type=“black” + border_size=“auto”

Make ”auto” default?

follow-up:

AdamSpannbauer commented 5 years ago

First pass pushed to auto_border branch. Travis passed, but want to run some more varied visual tests before merging into master.

AdamSpannbauer commented 5 years ago

34 adds implementation of border_size='auto'

Need to add input/output example to usage docs

AdamSpannbauer commented 5 years ago

need to revisit implementation and test with more videos. current implementation fails on non-ostrich test videos.

Example (last frame of a stabilization showing all frames in video overlaid):

AdamSpannbauer commented 5 years ago

appears to be fixed by #40