From d9478252e97dcb2f324aaa4f576092f5a63627c8 Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Mon, 9 Jul 2012 12:19:59 +0000 Subject: [PATCH] show detected keypoints in feature_homography.py --- samples/python2/feature_homography.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/python2/feature_homography.py b/samples/python2/feature_homography.py index 5a4dd7f607..c8b09de4cc 100644 --- a/samples/python2/feature_homography.py +++ b/samples/python2/feature_homography.py @@ -85,6 +85,9 @@ class App: vis = np.zeros((h, w*2, 3), np.uint8) vis[:h,:w] = self.frame self.rect_sel.draw(vis) + for kp in self.frame_points: + x, y = kp.pt + cv2.circle(vis, (int(x), int(y)), 2, (0, 255, 255)) if self.ref_frame is not None: vis[:h,w:] = self.ref_frame