import numpy as np import cv2 import math cap = cv2.VideoCapture(0) #fgbg = cv2.BackgroundSubtractorMOG() while(1): ret, frame = cap.read() gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) detec = cv2.FeatureDetector_create("SIFT") kp = detec.detect(gray) print kp # sift = cv2.SIFT() # kp = sift.detect(gray,None) frame=cv2.drawKeypoints(gray,kp) # fgmask = fgbg.apply(frame) cv2.imshow('esquinas frame',frame) cv2.imshow('grises',gray) k = cv2.waitKey(30) & 0xff if k == 27: break cap.release() cv2.destroyAllWindows()