Hello,
When using a USB camera, is there a way to reconnect after the USB connection is disconnected for a while?
The [device.getOutputQueue.has] part throws an error when the current connection is lost.
It's running in an infinite loop somewhere.
Do I need to restart the entire code? Or is there another way?
with dai.Device(pipeline) as device:
qRgb = device.getOutputQueue(name="rgb", maxSize=4, blocking=False)
while True:
if qRgb.has():
# inqRgb = qRgb.tryGet()
inqRgb = qRgb.get()
OS : ubuntu 20.04 lts
camera : oak-d Pro W
depthai version : version: 2.19.1.0
USB : USB 3.0