Skip to main content

A package for extracting frames from videos using OpenCV and supervision.

Project description

visionframe

visionframe is a Python package that simplifies the process of extracting frames from videos using OpenCV and supervision.

Installation

You can install visionframe using pip:

pip install visionframe

Usage

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

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

visionframe-0.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

visionframe-0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file visionframe-0.3.tar.gz.

File metadata

  • Download URL: visionframe-0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for visionframe-0.3.tar.gz
Algorithm Hash digest
SHA256 f4561c04a0dee3cde7558966a106bec446e2eada98f5e53341b7a83d98baa401
MD5 28af6d5a83c068429e5c1873252adb66
BLAKE2b-256 0df7f8c50bb6be4739eda1f8b1c7afe44af2f99d3be43470f0a9179b07689ebb

See more details on using hashes here.

File details

Details for the file visionframe-0.3-py3-none-any.whl.

File metadata

  • Download URL: visionframe-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for visionframe-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f0a94ebe6ac5bb2a9198be9398876cf1ff5ab2f6fa47a4518a50e3416016d62
MD5 e4a8eb87a62b3b1c3dc9c1935f07efb7
BLAKE2b-256 85b0066f4b75db100947bec3cbb4a2af85c25469cb2c340ae67075c15509efa0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page