Skip to main content

This application can be used to browse the frames of video files and apply basic transformations on them.

Installation

pip install video-browser

The application requires OpenCV and in case you have already installed it, please make sure you have a compatible version (see here for more information).

Usage

The application can be started from the command-line by providing the path to the directory containing the relevant video files:

python -m video_browser <video-dir>

It contains various control elements at the top, from left to right:

  • Bash-style globbing filter – specify a globbing pattern to filter the videos in the video-dir, e.g. favorite_*.ts.

  • Drop-down list containing all available video file names (optionally filtered) – change the selection to load a new video.

  • Three elements for frame selection:

    • < button selects the previous frame,

    • Frame counter spin box indicates the current frame and selects a new one when changed,

    • > button selects the next frame.

  • Four elements for transforming the current frame; these transformations are temporary in a sense that if the same frame number is loaded again (e.g. by pressing < followed by >) then the original frame without previous transformations is displayed. That is the transformations only change how a frame is displayed, not how it is stored.

    • Median Filter (3) – apply a median filter with kernel size 3,

    • Median Filter (5) – apply a median filter with kernel size 5,

    • Denoising – apply non-local means denoising,

    • Grayscale – change from color to grayscale; if already in grayscale, do nothing.

  • One button for displaying the current Region Of Interest (the axes boundaries of the image canvas).

In addition to these control elements, the canvas’ toolbar at the top of it can be used to zoom or otherwise modify the displayed image (this is the standard matplotlib Qt-style toolbar).

Customization

The application can be customized via command line arguments, for example changing the figure size:

python -m video_browser <video-dir> --canvas-figsize-inches 8 6

A complete overview of all available parameters can be obtained by using --help:

python -m video_browser --help

Example Screenshot

The UI window:

https://gitlab.com/Dominik1123/video-browser/-/raw/master/screenshot.png?inline=false

Metadata

Release files for video-browser 1.0

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

Source distribution (sdist)

Source distribution for video-browser 1.0
File Size Uploaded
video-browser-1.0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for video-browser 1.0
File Interpreter ABI Platform
video_browser-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.2 kB

Release files / video-browser-1.0.tar.gz

Download URL video-browser-1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
71f0d2d3e346bd628225e4db2612351e03aac36ba97b7c360652b9a889569f72
BLAKE2b-256 checksum
How to use checksums
61ffd82a22fdb2d1f4f57969ceb0793d92fb65e4f2730b38844fbdfd1289ebe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/34.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.2

Release files / video_browser-1.0-py3-none-any.whl

Download URL video_browser-1.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac99ae74d2e8a39cbe89ebde1468ba60fa5825036227c0f7bfa42267423ef100
BLAKE2b-256 checksum
How to use checksums
6c9761022fa2812322e1a4b2cfe23070e555010e6b5d31914a0f1e1fe2427dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/34.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.2

Release history Release notifications | RSS feed

This release

1.0 This release

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