- Edited
- Best Answerset by jakaskerl
Figured it out.
In get_stream()
I replaced:
with dai.Device(pipeline) as device:
q = device.getOutputQueue(name="rgb", maxSize=4, blocking=False)
return q
with:
return dai.Device(pipeline)
and elsewhere:
if (self.is_oak):
preview = self.stream.get()
self.frame = preview.getCvFrame()
with:
if (self.is_oak):
q = self.stream.getOutputQueue(name="rgb", maxSize=4, blocking=False)
preview = q.get()
self.frame = preview.getCvFrame()