Hi All,
I'm using this code in a headless system
``
so for me is useless (and give me error) enable the "oak.visualize"
with OakCamera() as oak:
left = oak.create_camera('left')
right = oak.create_camera('right')
stereo = oak.create_stereo(left=left, right=right, fps=30) #, encode='h264')
stereo.set_auto_ir(auto_mode=True, continuous_mode=True)
nn = oak.create_nn('mobilenet-ssd', left) # mobilenet-ssd
oak.trigger_action(
trigger=DetectionTrigger(input=nn, min_detections={'person': 1}, cooldown=30),
action=onDetectionTrigger(inputs=[nn], dir_path=LOCAL_DETECTION_STORAGE, url=DETECTION_ENDPOINT)
)
# oak.visualize([nn, stereo.out.disparity])
oak.start(blocking=True)
But if I use this setup I get this error:
StereoDepth(4) - No output of StereoDepth is connected/used!
I'm using stereo only to manage the IR for night-vision.