Added Supporting files

pull/3874/head
Ruturaj Dixit 2 months ago
parent 48a5ddb9ad
commit ad59700b14
  1. 21
      scripts/README.md
  2. 13
      scripts/main.py
  3. 0
      scripts/utils.py

@ -0,0 +1,21 @@
# Video Frame Extractor
A simple Python script to extract frames from a video file and save them as images.
## Installation
1. Clone this repository:
```bash
git clone https://github.com/ruturajdixit99/opencv_contrib.git
```
2. Install required libraries:
```bash
pip install opencv-python imutils
```
## Usage
Run the script by providing the path to the video file:
```bash
python main.py path/to/video.mp4

@ -0,0 +1,13 @@
import argparse
from framextract import extract_frames_from_video
def main():
parser = argparse.ArgumentParser(description="Extract frames from a video file")
parser.add_argument("video", help="Path to the video file")
args = parser.parse_args()
video_path = args.video
extract_frames_from_video(video_path)
if __name__ == "__main__":
main()
Loading…
Cancel
Save