I tried to preview/save synchronized rectifiedLeft/rectifiedRight images and got stumbled at:
RuntimeError: Queue for stream name 'rectifiedLeft' doesn't exist
My simple preview code looks like this:
from depthai_sdk import Previews
from depthai_sdk.managers import PipelineManager, PreviewManager
import depthai as dai
import cv2
pm = PipelineManager()
pm.createColorCam(xout=True,previewSize=(1280,800))
pm.createLeftCam(xout=True)
pm.createRightCam(xout=True)
with dai.Device(pm.pipeline) as device:
pv = PreviewManager(display=[Previews.color.name, Previews.rectifiedLeft.name, Previews.rectifiedRight.name],mouseTracker=True)
pv.createQueues(device)
while True:
pv.prepareFrames()
pv.showFrames()
if cv2.waitKey(1) == ord('q'):
break
Could anyone helps to fix the error?
Plus how to add the saving left/right images part?
Please help. Thanks.