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
34 35 36 37 38 39 40 41 42 |
|
getImage Link
getImage()
Submit 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:
Name | Type | Description |
---|---|---|
future |
Future[tuple[memoryview, dict]]
|
|
Source code in plantimager/controller/camera/PiCameraComm.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|