oscnord / video-to-image

Convert video to an image sequence with per frame blur detection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video to images

Simple script to convert a video to an image sequence with blur detection using OpenCV.

Usage

Dependencies

  • OpenCV

Example

required arguments:
  -p PATH, --path PATH  path to the video file

optional arguments:
  -t THRESHOLD, --threshold THRESHOLD
                        default threshold is 100.0. Use 10-30 for motion
  -s STEP, --step STEP  frame step size
  --save SAVE           path to save the frames in a directory

Example usage:

python3 vid2img.py -p ./video.mp4

About

Convert video to an image sequence with per frame blur detection.

License:MIT License


Languages

Language:Python 100.0%