How ugarcil/rpixel works
RPixel is a PyQt desktop application for microscope imaging. The principal workflow is operating the live camera preview, organizing captures in a project with structured filename prefixes, and optionally applying camera flips and calibrated scale bars to saved images. The graph also shows camera presets and calibration/nomenclature support. Source excerpts establish the camera and image-processing behavior; omitted portions of main.py limit verification of some UI-to-capture and persistence connections, shown as unverified where appropriate.
Main entry points: main.py Main controller · videoUtils.py Video manager · constants.py Picamera2 camera · mainWindow.py Main window UI
Components 15
Application
- Main controller
main.py - Main window UI
mainWindow.py - Preview widget
mainWindow.py
Camera Capture
- Picamera2 camera
constants.py - Video manager
videoUtils.py - Live preview
videoUtils.py - Captured image
videoUtils.py
Image Organization
- Project images
main.py - Structured prefix
main.py - Nomenclature file
constants.py
Calibration and Settings
- Scale calibration
main.py - Scale bar processing
videoUtils.py - Camera settings
constants.py - Camera presets
main.py
Other components
- Operator
Connections 15
- Operator → Main window UI: operates
mainWindow.py - Main controller → Main window UI: sets up
main.py - Main controller → Video manager: creates
main.py - Main controller → Live preview: updates
main.py - Video manager → Picamera2 camera: captures from
videoUtils.py - Picamera2 camera → Live preview: provides frames
videoUtils.py - Video manager → Captured image: captures
videoUtils.py - Main controller → Project images: organizes captures
main.py - Main controller → Structured prefix: composes
main.py - Main controller → Nomenclature file: reads and updates
main.py - Main controller → Scale calibration: loads and saves
main.py - Main controller → Scale bar processing: applies scale bar
main.py - Video manager → Captured image: flips image
videoUtils.py - Main controller → Camera settings: uses settings
main.py - Main controller → Camera presets: loads and saves
main.py