Skip to main content

Browse video frames and apply basic transformations.

Project description

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

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video-browser-1.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

video_browser-1.0-py3-none-any.whl (19.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page