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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file video-browser-1.0.tar.gz.

File metadata

  • Download URL: video-browser-1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for video-browser-1.0.tar.gz
Algorithm Hash digest
SHA256 71f0d2d3e346bd628225e4db2612351e03aac36ba97b7c360652b9a889569f72
MD5 7d82363c8100c1fc5a2a967e1912a10f
BLAKE2b-256 61ffd82a22fdb2d1f4f57969ceb0793d92fb65e4f2730b38844fbdfd1289ebe7

See more details on using hashes here.

File details

Details for the file video_browser-1.0-py3-none-any.whl.

File metadata

  • Download URL: video_browser-1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for video_browser-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac99ae74d2e8a39cbe89ebde1468ba60fa5825036227c0f7bfa42267423ef100
MD5 4ebe0a7723873cab053b74f93cd942a7
BLAKE2b-256 6c9761022fa2812322e1a4b2cfe23070e555010e6b5d31914a0f1e1fe2427dad

See more details on using hashes here.

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