jvconnected.ui.models.devicepreview
- class jvconnected.ui.models.devicepreview.PreviewMode(value)[source]
Bases:
Enum
PreviewMode Enum
- OFF = 1
OFF
- VIDEO = 2
Video
- WAVEFORM = 3
Waveform
- class jvconnected.ui.models.devicepreview.CameraPreview(*args)[source]
Bases:
QQuickPaintedItem
A video or waveform monitor as a QQuickPaintedItem
- Property device: jvconnected.ui.models.device.DeviceModel
The
DeviceModel
instance
- Property videoMode: str
The current display mode as a member of
PreviewMode
- async capture_loop()[source]
Open the
devicepreview
and continuously request image frames whilevideoMode
isVIDEO
orWAVEFORM
.Each frame is then placed into a
QPixmap
and an update is requested viaQPainter
- paint(self, painter: PySide2.QtGui.QPainter)[source]