A package for extracting frames from videos using OpenCV and supervision.
Project description
visionframe
visionframe is a Python package that allows you to easily extract frames from videos using OpenCV and supervision.
Installation
You can install visionframe via pip:
pip install visionframe
Usage
To use visionframe, you need to import it into your Python script and use the extract_frames
function. Here's a basic example:
import visionframe
VIDEO_DIR_PATH = "/path/to/your/video/directory"
IMAGE_DIR_PATH = "/path/to/where/you/want/to/save/images"
FRAME_STRIDE = 1
visionframe.extract_frames(VIDEO_DIR_PATH, IMAGE_DIR_PATH, FRAME_STRIDE)
Replace VIDEO_DIR_PATH with the directory path where your videos are located, IMAGE_DIR_PATH with the directory path where you want to save the extracted frames, and adjust FRAME_STRIDE as needed
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file visionframe-0.1-py3-none-any.whl
.
File metadata
- Download URL: visionframe-0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0cbc358184cb03c448f4ab113bc0ecf7cc668b92ccb2b641639d9ab8ea052755
|
|
MD5 |
98b3666ea1faf7eb58b753de6d36997e
|
|
BLAKE2b-256 |
59f6d598eda063ad47f2d8aa885bece4ab528af813f1a32d8bab281568118e36
|