# CV2 Threaded Video Capture
Not much to say here, it enables you to read an entire video or a number of frames from a video in an extra thread with some nice syntax.
This project was initially part of my video synopsis project, wich is why the config dict() is required.
### Full video
from VideoReader import VideoReader import os
fileName = “out.mp4” dirName = os.path.join(os.path.dirname(__file__), “generate test footage”)
config = {} config[“inputPath”] = os.path.join(dirName, fileName) config[“videoBufferLength”] = 100
- with VideoReader(config) as reader:
- while not reader.videoEnded():
framenumber, frame = reader.pop() print(framenumber)
### Selection of Frames
from VideoReader import VideoReader import os
fileName = “out.mp4” dirName = os.path.join(os.path.dirname(__file__), “generate test footage”)
config = {} config[“inputPath”] = os.path.join(dirName, fileName) config[“videoBufferLength”] = 100
frameList = list(range(100, 500))
- with VideoReader(config, frameList) as reader:
- while not reader.videoEnded():
framenumber, frame = reader.pop() print(framenumber)
Metadata
Release files for CV2-Threaded-Video-Capture 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CV2-Threaded-Video-Capture-1.0.0.tar.gz | 2.3 kB | Without provenance | Details for CV2-Threaded-Video-Capture-1.0.0.tar.gz |
Release files / CV2-Threaded-Video-Capture-1.0.0.tar.gz
| Download URL | CV2-Threaded-Video-Capture-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a5cbe20410788a676d9e5636478ca7ce7d2668dcb6d77252c3eab3deee4d844
|
|
BLAKE2b-256 checksum How to use checksums |
311fa2c5b2379695d1b4667f1912f64ba361f7b858e2c4e32d5e5df9c9b54379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
|
Security for CV2-Threaded-Video-Capture 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.