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)
# inqRgb = qRgb.tryGet()
inqRgb = qRgb.get()
OS : ubuntu 20.04 lts
camera : oak-d Pro W
depthai version : version: 220.127.116.11
USB : USB 3.0