Meta-tool that presents frames from a video to image analysis frameworks and uses the predictions to determine whether to use a frame or not.
Frames can be presented as files (file-polling-based) with the predictions then being read from files that the image analysis framework generated.
Alternatively, a Redis (https://redis.io/) backend can be used (redis-based), to broadcast the images as JPG bytes and then listening on another channel for the predictions to come through. This approach avoids wearing out disks.
Rather than just processing every n-th frame, a simple pruning mechanism can be employed which discards frames that are too similar.
Project page:
https://github.com/waikato-datamining/video-frame-selector
Changelog
0.0.9 (2022-01-27)
added support for pruning frames that do not exhibit enough change over the previous one (–prune, –bw_threshold, –change_threshold)
0.0.8 (2021-11-02)
process.py and process_redis.py now allow iterating through images (.jpg, .png) in a directory
process_redis.py now handles predictions in bytes or str
0.0.7 (2021-09-27)
process.py now adheres to the –output_metadata flag
process_redis.py allows processing of frames via Redis backend
0.0.6 (2021-08-05)
frames processed output is now always being output
added logging output for frame file and metadata file in verbose mode
0.0.5 (2021-08-05)
added –output_metadata flag that stores information on predictions and cropping when outputting frames
0.0.4 (2021-08-03)
added –crop_to_content flag that crops the frames to the bounding boxes (only when not generating an output video)
added –crop_margin option to enforce a buffer around cropped region
added –crop_min_width and –crop_min_height options to enforce a minimum width/height
0.0.3 (2021-08-02)
added –poll_interval option (https://github.com/waikato-datamining/video-frame-selector/issues/2)
added logging output for when writing image to disk
0.0.2 (2021-07-30)
fixed return statement in process_image method
added more debugging output
added –analysis_keep_files option for debugging purposes, which won’t delete the output of the image analysis framework
added options for defining a frame window (–from_frame, –to_frame)
0.0.1 (2021-07-21)
initial release
Metadata
Release files for video-frame-selector 0.0.9
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 | |
|---|---|---|---|---|
| video-frame-selector-0.0.9.tar.gz | 16.5 kB | Without provenance | Details |
Release files / video-frame-selector-0.0.9.tar.gz
| Download URL | video-frame-selector-0.0.9.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5362cbd05fe817c8ba880ad8dd43c150218291c540e44c6123770afe754ca47
|
|
BLAKE2b-256 checksum How to use checksums |
48953710b991845a574d7a1666b9558ef83011de9179b24924a6f4cbe0b2b0b9
|
| 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.8.10
|
Security for video-frame-selector 0.0.9
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.