Skip to main content

Empower Your Computer Vision Projects with VisionFrame: Seamlessly Handle Video and Image

Project description

VisionFrame

Downloads Downloads Downloads

Empower Your Computer Vision Projects with VisionFrame: Seamlessly Handle Video and Image.

Table of Contents

  1. Installations
  2. Video To Frame

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

visionframe-0.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

visionframe-0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for visionframe-0.4.tar.gz
Algorithm Hash digest
SHA256 98649571ed9490166b591db7b2976d623a90345b518ff72b03426950e85ac2f3
MD5 dabd6d9db3b0315cca0376827a345c88
BLAKE2b-256 991c2e6877c643d280ebfe7190803d5e49b1ad17429e50353cf407c42b52a2a7

See more details on using hashes here.

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

Hashes for visionframe-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 105131399e50cb323e2eb7d593c37d1cd957c791d5b095d1c540be94e09cbaaa
MD5 37ca210f742d8e79b9533a944d5a441d
BLAKE2b-256 9fcb66eaa2219268c4e25c5cfdb7f972cc3c3cb94275f13cb06c27c1878ded54

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