show detected keypoints in feature_homography.py

pull/2/head
Alexander Mordvintsev 13 years ago
parent a5b60fa532
commit d9478252e9
  1. 3
      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

Loading…
Cancel
Save