jvconnected.ui.models.devicepreview¶
-
class
jvconnected.ui.models.devicepreview.CameraPreview(*args)[source]¶ Bases:
PySide2.QtQuick.QQuickPaintedItem-
device= <PySide2.QtCore.Property object>¶ The
DeviceModelinstance
-
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
devicepreviewand continuously request image frames whilevideoEnabledisTrue.Each frame is then placed into a
QPixmapand an update is requested viaQPainter
-