From 5aef565fb6afdee919c297acb2dd479ba5cf9616 Mon Sep 17 00:00:00 2001 From: UncleLLD Date: Tue, 7 Dec 2021 00:14:17 +0800 Subject: [PATCH] Merge pull request #21188 from UncleLLD:fix-markdown-error fix issue 21187: markdown file: gray image does not have three dimensions --- .../py_feature_homography/py_feature_homography.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.markdown b/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.markdown index 8602cc9398..f8836b095b 100644 --- a/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.markdown +++ b/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.markdown @@ -78,7 +78,7 @@ if len(good)>MIN_MATCH_COUNT: M, mask = cv.findHomography(src_pts, dst_pts, cv.RANSAC,5.0) matchesMask = mask.ravel().tolist() - h,w,d = img1.shape + h,w = img1.shape pts = np.float32([ [0,0],[0,h-1],[w-1,h-1],[w-1,0] ]).reshape(-1,1,2) dst = cv.perspectiveTransform(pts,M)