Empower Your Computer Vision Projects with VisionFrame: Seamlessly Handle Video and Image
Project description
VisionFrame
Empower Your Computer Vision Projects with VisionFrame: Seamlessly Handle Video and Image.
Table of Contents
Installations
You can simply use pip to install the latest version of visionframe
pip install visionframe
Video To Frame
To extract frames from videos, simply import the FrameExtractor class from visionframe and create an instance with the desired parameters. Then, call the extract_frames() method:
from visionframe import FrameExtractor
VIDEO_DIR_PATH = "/path/to/videos"
IMAGE_DIR_PATH = "/path/to/images"
FRAME_STRIDE = 1 # every frame in the video will be extracted
frame_extractor = FrameExtractor(video_dir_path=VIDEO_DIR_PATH, image_dir_path=IMAGE_DIR_PATH, frame_stride=FRAME_STRIDE)
frame_extractor.extract_frames()
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 Distribution
Built Distribution
File details
Details for the file visionframe-0.4.tar.gz
.
File metadata
- Download URL: visionframe-0.4.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
98649571ed9490166b591db7b2976d623a90345b518ff72b03426950e85ac2f3
|
|
MD5 |
dabd6d9db3b0315cca0376827a345c88
|
|
BLAKE2b-256 |
991c2e6877c643d280ebfe7190803d5e49b1ad17429e50353cf407c42b52a2a7
|
File details
Details for the file visionframe-0.4-py3-none-any.whl
.
File metadata
- Download URL: visionframe-0.4-py3-none-any.whl
- Upload date:
- Size: 3.5 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 |
105131399e50cb323e2eb7d593c37d1cd957c791d5b095d1c540be94e09cbaaa
|
|
MD5 |
37ca210f742d8e79b9533a944d5a441d
|
|
BLAKE2b-256 |
9fcb66eaa2219268c4e25c5cfdb7f972cc3c3cb94275f13cb06c27c1878ded54
|