1 | 2 | 3 |
---|---|---|
4 | 5 | 6 |
7 | 8 | 9 |
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.
pip install video-razor
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.
from video_razor import VideoRazor
if __name__ == '__main__':
input_file = 'cards.mp4'
output = 'out/out'
razor = VideoRazor(input_file, output, 3)
razor.slice()