jvconnected.ui.models.devicepreview

class jvconnected.ui.models.devicepreview.CameraPreview(*args)[source]

Bases: PySide2.QtQuick.QQuickPaintedItem

device = <PySide2.QtCore.Property object>

The DeviceModel instance

videoEnabled = <PySide2.QtCore.Property object>

Whether the image capture is currently active

setVideoEnabled(enabled: bool)[source]

Begin or end encoding and retreiving image frames from the device

async capture_loop()[source]

Open the devicepreview and continuously request image frames while videoEnabled is True.

Each frame is then placed into a QPixmap and an update is requested via QPainter

paint(self, painter: PySide2.QtGui.QPainter)[source]