Skip to main content
Tests PyPI Downloads

cv-frames is a lightweight utility that simplifies working with video files frame-by-frame using OpenCV. It includes both a Python API and a command-line interface (CLI) for interacting with video frames in an intuitive way.


Installation

Install via pip:

pip install cv-frames

If you install cv-frames standalone, you need to specify an OpenCV backend:

pip install cv-frames[opencv]

If cv-frames is part of a project that already depends on OpenCV (e.g. opencv-python or opencv-contrib-python is listed in your requirements.txt), no optional dependency is needed.


Command Line Usage

After installation, you can use the CLI:

cv-frames show path/to/video.mp4

Navigate through frames with any key. Press q to quit.


Python Usage

Example: Read and show frames programmatically

from pathlib import Path
from cvframes import iterate

for i, (_, frame) in enumerate(iterate(Path("video.mp4"))):
    print(f"Frame {i} shape:", frame.shape)

Example: Split side-by-side video into left/right frames

from cvframes import iterate_sbs

# Write the processed frames to disc
for capture, (left, right) in iterate_sbs("sbs_video.mp4", oname="processed.mp4"):
    processed = do_something(left)
    capture.write(processed)

Release files for cv-frames 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cv-frames 0.0.5
File Size Uploaded
cv_frames-0.0.5.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cv-frames 0.0.5
File Interpreter ABI Platform
cv_frames-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / cv_frames-0.0.5.tar.gz

Download URL cv_frames-0.0.5.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
09b71c8dc6fde292a765662d9beacf987cad6eead4cab03a22484523ccbf4dd7
BLAKE2b-256 checksum
How to use checksums
d48b32367176b09e35a17e2d30de16cbf8d6149c18348edb480655214dbde9d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / cv_frames-0.0.5-py3-none-any.whl

Download URL cv_frames-0.0.5-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
184f896bf8ef42712da9c9e5c09db6623ab0d7969dc5ef4152637a30040f4614
BLAKE2b-256 checksum
How to use checksums
52706495e5614a639f55bd196475da2b0f3b56f64cb3d8e5196995bc8dddea7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page