Hi,
I'm trying to use an OAK PoE camera in a production setting where reliability is critical and I've been having some trouble getting the camera stream to re-establish itself without exiting the program or power-cycling once it is down. My pseudocode looks like this:
camera.initialize()
camera.start()
while terminate_signal is false:
try:
imgRGB: dai.ImgFrame = outQ.get()
(img processing)
except Exception as e:
print(e)
camera.stop()
time.sleep(10)
camera.start()
However when I try to implement this code the program simply hangs but the stream no longer comes up after unplugging/reconnecting the ethernet cable for the camera