Skip to main content

A package for slicing a video into N sections

Project description

Build Status Python 3.6

Video Razor

1 2 3
alt text alt text alt text
4 5 6
alt text alt text alt text
7 8 9
alt text alt text alt text

A package for slicing a video into N**2 sections.

The original use-case was to process higher-definition videos, split up, through Deep Learning models. This allows for easier detection of smaller objects.


Install

pip install video-razor

Usage

The class input file name, output file name, and the cross sections you'd like to split the video in. e.g. 3 will produce an output of 9 videos - 3 horizontal, 3 vertical.

The output file name should NOT contain a suffix as this will be appended during processing.

input_file = 'data/input/sample.mp4'
output = 'data/output/out'
razor = VideoRazor(input_file, output, 3)
razor.slice()

Project details


Download files

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

Source Distribution

video_razor-0.0.3.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page