Skip to content

Stabilizer Class

Abhishek Thakur edited this page Jun 22, 2019 · 32 revisions

Stabilizer

This class enables Real-time Video Stabilization for vidgear which can provide powerful video stabilization with latency and at the expense of little to no additional computational power requirement. It tracks the salient feature array of frames and uses this as an anchor point to cancel out all perturbations relative to it.

  • smoothing_radius (int) : to alter averaging window size. It handles the quality of stabilization at the expense of latency and sudden panning. Larger its value, less will be panning, more will be latency and vice-versa. Its default value is 25.
  • border_size (int) : to alter output border cropping. It's will crop the border to reduce the black borders from stabilization being too noticeable. Larger its value more will be cropping. Its default value is 0 (i.e. no cropping).
  • border_type (string) : to change the border mode. Valid border types are 'black', 'reflect', 'reflect_101', 'replicate' and 'wrap'. Its default value is 'black' logging: set this flag to enable/disable error logging essential for debugging. Its default value is False.

Clone this wiki locally