Hi TolqinjonRahimov
Switch the replay with camera nodes:
- Remove anything that has to do with replay
- Add left and right mono cameras and link them together inside stereo_depth node.
Everything else can pretty much stay the same.
pipeline = dai.Pipeline()
#create left and right cameras
leftCam = pipeline.createMonoCamera()
leftCam.setBoardSocket(dai.CameraBoardSocket.LEFT)
leftCam.setResolution(dai.MonoCameraProperties.SensorResolution.THE_720_P)
rightCam = pipeline.createMonoCamera()
rightCam.setBoardSocket(dai.CameraBoardSocket.RIGHT)
rightCam.setResolution(dai.MonoCameraProperties.SensorResolution.THE_720_P)
#create stereo node
stereo = pipeline.createStereoDepth()
stereo.setConfidenceThreshold(200)
stereo.initialConfig.setMedianFilter(dai.StereoDepthProperties.MedianFilter.KERNEL_7x7) # KERNEL_7x7 default
stereo.setLeftRightCheck(True)
# nodes.stereo.setSubpixel(True)
leftCam.out.link(stereo.left)
rightCam.out.link(stereo.right)
Hope this helps,
Jaka