From 8515816dd4ebbb6406be70b04aab5fe90318a60b Mon Sep 17 00:00:00 2001 From: arrichter Date: Mon, 12 Oct 2020 13:00:39 +0200 Subject: [PATCH] Update py_depthmap.rst Code was non functional. --- source/py_tutorials/py_calib3d/py_depthmap/py_depthmap.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()