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 whilevideoEnabled
isTrue
.Each frame is then placed into a
QPixmap
and an update is requested viaQPainter
-