parent
48a5ddb9ad
commit
ad59700b14
3 changed files with 34 additions and 0 deletions
@ -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…
Reference in new issue