moduler multi purpose video player for debugging algorithms in python
Project description
Introduction
CV video player is a Python-based customizable video player that helps computer vision practitioners develop, analyze, and debug their video-related algorithms and models.
The video player is made with simplicity in mind to allow users to easily add or remove functionality. It is only based OpenCV with no additional GUI frameworks, and It's interactivity is based on keyboard presses (no buttons).
The player is designed as a callback system. When initialized the player receives a
list of callbacks, each with a edit_frame method.
On runtime the callbacks will run in order as specified in the input list. Each callback can also optionally add
keyboard shortcuts to change visualization settings in real time.
Installation
pip install cvvideoplayer
Quick Start
from cvvideoplayer import create_video_player
from cvvideoplayer.frame_editors import FrameInfoOverlay, KeyMapOverlay, FitFrameToScreen
VIDEO_OR_FRAME_FOLDER_PATH = "<add local path here>"
def run_player():
video_player = create_video_player(
video_source=VIDEO_OR_FRAME_FOLDER_PATH,
frame_edit_callbacks=[
FitFrameToScreen(),
FrameInfoOverlay(),
KeyMapOverlay(),
],
record=True,
)
video_player.run()
if __name__ == "__main__":
run_player()
In this example, we initiate a very basic video player that will play "example_video.mp4" with added basic frame edit callbacks:
FitFrameToScreen: Resizes the frame to fit the screen sizeFrameInfoOverlay: Prints the current frame number and original frame resolution in the top left cornerKeyMapOverlay: prints all optional shortcuts registered by all callbacks
Check out the ./demos folder which shows the use of other cool frame edit callback
such as OpticalFlow and DetectionCsvPlotter
See it in action
Running frame by frame
Play/Pause and control play speed and direction
Draw bounding boxes and adjust labels
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cvvideoplayer-1.2.9.tar.gz.
File metadata
- Download URL: cvvideoplayer-1.2.9.tar.gz
- Upload date:
- Size: 81.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf4e5147b64ff9b1cb36b1ae0adeed87695e53326966f1a9f3ccea8810a58956
|
|
| MD5 |
73a7a1331766e7b9f22c9ab13083a91f
|
|
| BLAKE2b-256 |
adbb93d786323908e24aea3fd1b9f254150da64d23e7c9cd14a894bd0aa16d80
|
Provenance
The following attestation bundles were made for cvvideoplayer-1.2.9.tar.gz:
Publisher:
publish.yml on danieltomer1/CVVideoPlayer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cvvideoplayer-1.2.9.tar.gz -
Subject digest:
bf4e5147b64ff9b1cb36b1ae0adeed87695e53326966f1a9f3ccea8810a58956 - Sigstore transparency entry: 155031356
- Sigstore integration time:
-
Permalink:
danieltomer1/CVVideoPlayer@43a88cab66bd4fd0221baa20af7add9c9891c0d7 -
Branch / Tag:
refs/tags/1.2.9 - Owner: https://github.com/danieltomer1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43a88cab66bd4fd0221baa20af7add9c9891c0d7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cvvideoplayer-1.2.9-py3-none-any.whl.
File metadata
- Download URL: cvvideoplayer-1.2.9-py3-none-any.whl
- Upload date:
- Size: 87.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5eb71cd31b974f439afac3e935aa30efd2c7f71200dd782fffddadfd352efce
|
|
| MD5 |
142f13491c6ea46b6689341a426e1593
|
|
| BLAKE2b-256 |
1f94128ad9c37b8b4093ec0aa7e82d574b7bcee647f9d8a1a22dfc9b170f0465
|
Provenance
The following attestation bundles were made for cvvideoplayer-1.2.9-py3-none-any.whl:
Publisher:
publish.yml on danieltomer1/CVVideoPlayer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cvvideoplayer-1.2.9-py3-none-any.whl -
Subject digest:
c5eb71cd31b974f439afac3e935aa30efd2c7f71200dd782fffddadfd352efce - Sigstore transparency entry: 155031358
- Sigstore integration time:
-
Permalink:
danieltomer1/CVVideoPlayer@43a88cab66bd4fd0221baa20af7add9c9891c0d7 -
Branch / Tag:
refs/tags/1.2.9 - Owner: https://github.com/danieltomer1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43a88cab66bd4fd0221baa20af7add9c9891c0d7 -
Trigger Event:
release
-
Statement type: