diff --git a/source/py_tutorials/py_calib3d/py_depthmap/py_depthmap.rst b/source/py_tutorials/py_calib3d/py_depthmap/py_depthmap.rst index aac4dd0..cdea83a 100644 --- a/source/py_tutorials/py_calib3d/py_depthmap/py_depthmap.rst +++ b/source/py_tutorials/py_calib3d/py_depthmap/py_depthmap.rst @@ -43,7 +43,7 @@ Below code snippet shows a simple procedure to create disparity map. imgL = cv2.imread('tsukuba_l.png',0) imgR = cv2.imread('tsukuba_r.png',0) - stereo = cv2.createStereoBM(numDisparities=16, blockSize=15) + stereo = cv2.StereoBM_create(numDisparities=16, blockSize=15) disparity = stereo.compute(imgL,imgR) plt.imshow(disparity,'gray') plt.show()