From 73e9470d46f580e8a1e41590117a656b1846a2d2 Mon Sep 17 00:00:00 2001 From: Justin Torre Date: Wed, 27 Jan 2021 17:32:06 -0800 Subject: [PATCH] Update py_matcher.rst was getting TypeError: drawMatchesKnn() missing required argument 'outImg' (pos 6) --- source/py_tutorials/py_feature2d/py_matcher/py_matcher.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/py_tutorials/py_feature2d/py_matcher/py_matcher.rst b/source/py_tutorials/py_feature2d/py_matcher/py_matcher.rst index b81130b..efe532a 100644 --- a/source/py_tutorials/py_feature2d/py_matcher/py_matcher.rst +++ b/source/py_tutorials/py_feature2d/py_matcher/py_matcher.rst @@ -117,7 +117,7 @@ This time, we will use ``BFMatcher.knnMatch()`` to get k best matches. In this e good.append([m]) # cv2.drawMatchesKnn expects list of lists as matches. - img3 = cv2.drawMatchesKnn(img1,kp1,img2,kp2,good,flags=2) + img3 = cv2.drawMatchesKnn(img1,kp1,img2,kp2,good,None,flags=2) plt.imshow(img3),plt.show()