Skip to main content

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 Distribution

visionframe-0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

visionframe-0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for visionframe-0.2.tar.gz
Algorithm Hash digest
SHA256 3e0694677f7f3f50b3ebb0aedadb190fa271c47dc9c70b938258b80c75dbdabd
MD5 0b5b17ea9500ad9cd0ec19a2f067b408
BLAKE2b-256 fa59fcb6b7d0e287edf4881c1ad305970b7c610ada5563cbde1194a9c88ee073

See more details on using hashes here.

File details

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

File metadata

  • Download URL: visionframe-0.2-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

Hashes for visionframe-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dba1cb0429b9aefa197cbf788af6f71db73bf1494a2a5d4297eb77300b1eaf5c
MD5 622763883b52ba627cab3cddce565a51
BLAKE2b-256 53b83a6fc30f78f2be04a73011eb3a67db76fa717b6072d5c13f30317bd9a994

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