PiCameraComm
plantimager.controller.camera.PiCameraComm Link
PiCameraComm Link
PiCameraComm(context, url, parent=None)
Bases: QObject
Object that will handle communication with the picamera. Meant to live in a separate thread.
Serves as a bridge between Qt and the picamera.
After init use moveToThread() to change the execution context.
Source code in plantimager/controller/camera/PiCameraComm.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
getImage Link
getImage(lores=False)
Submits a call to camera.get_image() and returns a future representing the pending result. When camera.get_image() returns and the result is available, the signal imageReady is emitted.
Returns:
| Type | Description |
|---|---|
future or None : Future[tuple[memoryview, dict]] or None
|
returns None when the camera is unavailable |
Source code in plantimager/controller/camera/PiCameraComm.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | |