sourabhjagtap95 / AwesomePythonScripts

[Show some :heart: by giving :stars:], A place to post your python scripts which you think are awesome
50 stars 39 forks source link

Create parser_video.py #65

Closed hidalgo-vntu closed 2 years ago

hidalgo-vntu commented 2 years ago

README.md video parser Python script for extracting images from video files

Basic usage: python3 video_parser.py -i INPUT_DIR -o OUTPUT_DIR

INPUT_DIR is the directory containing video files, INPUT_DIR can also be a zip file OUTPUT_DIR is where RGB frames are saved Examples:

To process first 100 frames only: python3 video_parser.py -i INPUT_DIR -o OUTPUT_DIR -n 100 To flip image: python3 video_parser.py -i INPUT_DIR -o OUTPUT_DIR --flip To extract every 5th-frame: python3 video_parser.py -i INPUT_DIR -o OUTPUT_DIR --skip_frames 5 To delete original data after processing: python3 video_parser.py -i INPUT_DIR -o OUTPUT_DIR --delete_original To view all options: python3 video_parser.py -h

hidalgo-vntu commented 2 years ago

Hacktoberfest 2022

hidalgo-vntu commented 2 years ago

HACKTOBERFEST