Skip to main content

Early stage Qt widget for monitoring cameras at NSLS-II

This is a simple Qt-based widget for monitoring a camera on the network, and performing some overdrawing of the images. It is still subject to change.

It depends upon qtpy which needs PySide2 or PyQt5 in order to show anything.

This currently expects a network endpoint that offers a single JPEG file, which it will use to download from periodically. Things like the FFMPEG plugin for the area detector and the AXIS webcams support this. Likely soon I will add support for the MJPEG stream that is offered by some of the cameras for more efficient data streaming from the cameras.

Expected camera urls/endpoints:

  • Endpoints that offer single JPEG files that are downloaded periodically based on frame rate
  • MJPEG stream (URL must end with mjpg or cgi)

Installation and usage

As of v0.0.2 the widget is not pip installable.

To use clone the repo and run either of the 2 apps developed that use the widget python main.py - Shows a grid of camera feeds python monitor.py - Shows a grid of camera feeds as thumnails which can be clicked to shown on the "main" camera feed. Sort of like a Master Control in TV stations

Plugins API

A number of plugins have been developed to allow each instance of the QMicroscope camera to have it's own set of features as defined by the application. Plugins defined for the two implemented apps are as follows:

main.py

  • Record plugin (alpha testing)
    • Allows user to record video feed into MJPG format

monitor.py

Main camera feed

  • Crosshair plugin
    • Draws a crosshair with a specific color and position
    • Option available to always center the crosshair regardless of size of image
  • Grid plugin
    • Draws a grid with specified number of rows and columns
    • Options to change color, hide or show grid and selector
  • Scale plugin
    • Draws a scale in the x-y direction
    • Options to change color, location, text shown on each axis and toggle visibility
  • Crop plugin
    • Crop the video feed to a specific area
  • Preset plugin
    • Allows settings of other plugins to be named and saved
    • Settings can be restored at any point

Thumbnail camera feed

  • Toggle plugin
    • Adds a checkbox to the camera feed that will pause or resume the video feed

Plugin API

Instructions to write your own plugin, coming soon (checkout the plugins folder)

Metadata

Release files for qmicroscope 0.0.7

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

Source distribution (sdist)

Source distribution for qmicroscope 0.0.7
File Size Uploaded Provenance Actions
qmicroscope-0.0.7.tar.gz 33.0 kB Without provenance Details for qmicroscope-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qmicroscope 0.0.7
File Interpreter ABI Platform Actions
qmicroscope-0.0.7-py3-none-any.whl Python 3 none any Details for qmicroscope-0.0.7-py3-none-any.whl

Total release size: 73.6 kB

Release files / qmicroscope-0.0.7.tar.gz

Download URL qmicroscope-0.0.7.tar.gz
Size 33.0 kB
Tags Source
SHA-256 checksum
How to use checksums
72d30743442850917e0a6fa97268a4fc113fb1a5ff72c291764aa856159129fd
BLAKE2b-256 checksum
How to use checksums
bcbc409b8bc9478419469939ad4dfcb373561c844e1144d7844b3f88dcf17cba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.0

Release files / qmicroscope-0.0.7-py3-none-any.whl

Download URL qmicroscope-0.0.7-py3-none-any.whl
Size 40.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
877007959c737cb856133654a502ca5adcfafe5dac176002d3e70da918ad4a00
BLAKE2b-256 checksum
How to use checksums
d6a336094655a67638f76df5c155580f42d8f83db898a9e32441904cbf3418e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.0

Security for qmicroscope 0.0.7

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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