Skip to main content

A Qt-based image sequence visualizer widget

Project description

Image & Sequence Visualization

View on PyPI License

This package provides GUI widgets to show images and playback image sequences.

Screenshot Sequence Viewer

Installation

It is highly recommended to set up a separate virtual environment with an up-to-date pip:

python3 -m venv venv
source venv/bin/activate
python -m pip install -U pip

Then, simply install imseqvis via:

python -m pip install imseqvis

If you want to try the latest alpha, i.e. the latest main branch packaged and published to TestPyPI, you can instead install it via:

python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple "imseqvis[pyside2]"

Qt Backend

imseqvis requires a Qt backend. In Python, you need to either install PyQt or PySide.
The default installation will not install any of these backends, you have to select one on your own.

Optionally, you can install imseqvis with a specific backend. Currently, pyqt5, pyqt6, pyside2, and pyside6 are supported:

# PyQt5
python -m pip install "imseqvis[pyqt5]"

# OR

# PyQt6
python -m pip install "imseqvis[pyqt6]"

# OR

# PySide2
python -m pip install "imseqvis[pyside2]"

# OR

# PySide6
python -m pip install "imseqvis[pyside6]"

Usage as Standalone Application

To quickly visualize all images within a folder (and nothing else), you can use the provided to start a standalone GUI application:

import imseqvis
imseqvis.show('path/to/images')

Usage as Widget

To integrate the viewer into your own application, use the ImageSequenceViewer widget.

# Prepare the image data source. This must allow random access to the images.
# See the provided data sources within the examples/ folder for best practices.
sequence = [...]

# Create & use the widget.
viewer = SequenceViewer(image_sequence=sequence)
layout.addWidget(viewer)
...

# Alternatively, the widget can also be created without a data source:
viewer = SequenceViewer(image_sequence=None)
...
# Later on, the image sequence can be set via:
viewer.setSequence(new_sequence)

To show a different sequence within the same viewer, simply call:

viewer.setSequence(new_sequence)

More detailed usage examples are provided within examples/:

  • examples/demo_standalone.py demonstrates the basic usage with a dummy sequence.
  • examples/demo_folder.py will playback all images within a local folder.

Project details


Download files

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

Source Distribution

imseqvis-0.1.4.tar.gz (88.8 kB view details)

Uploaded Source

Built Distribution

imseqvis-0.1.4-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file imseqvis-0.1.4.tar.gz.

File metadata

  • Download URL: imseqvis-0.1.4.tar.gz
  • Upload date:
  • Size: 88.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for imseqvis-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f9df1d6fb7f25b21263d355935a29082822d3bc8f39f3d925597a29ff69ea637
MD5 e899ce65b7bed1563d6aeb8cf925b712
BLAKE2b-256 b22d61c6a7872ff9968154bba52ecef9bf3ec047751d12aca97b640a9f7824e9

See more details on using hashes here.

File details

Details for the file imseqvis-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: imseqvis-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for imseqvis-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7bf09f138f498872bf380ed18020a48fc07e2f5591412827ac27bbfafa1d10f9
MD5 6a677381ceff3d580b13d3ed6ff60c67
BLAKE2b-256 d2477c69d6c9510a76016e4cd0f4d8cf5883d27eb9bed5d3be0c1f5d31387c0e

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