From 02e3afae3a84eead4ebfcac100cc875ee46e2cae Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Tue, 12 Jun 2012 06:31:51 +0000 Subject: [PATCH] fixed find_obj.py (use detectAndCompute) --- samples/python2/find_obj.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/python2/find_obj.py b/samples/python2/find_obj.py index 4c90dae..a3bfce4 100644 --- a/samples/python2/find_obj.py +++ b/samples/python2/find_obj.py @@ -76,8 +76,8 @@ if __name__ == '__main__': img2 = cv2.imread(fn2, 0) surf = cv2.SURF(1000) - kp1, desc1 = surf.detect(img1, None, False) - kp2, desc2 = surf.detect(img2, None, False) + kp1, desc1 = surf.detectAndCompute(img1, None) + kp2, desc2 = surf.detectAndCompute(img2, None) desc1.shape = (-1, surf.descriptorSize()) desc2.shape = (-1, surf.descriptorSize()) print 'img1 - %d features, img2 - %d features' % (len(kp1), len(kp2)) -- 2.7.4