Skip to main content

A minimal package for video stabilization

Project description

Video-Stabilizer

This is a minimal package implementing video stabilization specifically tuned for microscopic time-lapses.

Example of stabilized video

Get started

Install using pip

pip install video_stabilizer

Examples

We can stabilize a sequence of frames given as a sequence of paths.

import video_stabilizer

paths = [...] 
frame_generator = video_stabilizer.FrameGenerator(paths)

for stabilized_frame, transform in video_stabilizer.stabilize_video(frame_generator):
    do_something(stabilized_frame, transform)

Or frames given by a cv2.VideoCapture:

import cv2
import video_stabilizer

cap = cv2.VideoCapture(...)
frame_generator = video_stabilizer.generate_frames_from_video(cap)

for stabilized_frame, transform in video_stabilizer.stabilize_video(frame_generator):
    do_something(stabilized_frame, transform)

License

Distributed under the MIT-license. See LICENSE for more information.

© 2020 Sartorius AG

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video_stabilizer-0.1.tar.gz (4.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page