I am trying to make my depth map video faster and so I ended up to multithreading. I am having difficulties to understand this topic as I don't succeed to find an example enough clear for me.
Imagining a simple code as :
img1= cv2.VideoCapture(0)
img2= cv2.VideoCapture(1)
stereo= cv2.StereoSGBM.compute(img1,img2)