From 8cd4c4d8c0cfb77570c81f6d8f95b50c6a5b19c4 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Tue, 15 Oct 2013 22:15:19 +0200 Subject: [PATCH] Delete surf.py --- surf.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 surf.py diff --git a/surf.py b/surf.py deleted file mode 100644 index fac6a85..0000000 --- a/surf.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python - -import cv2, sys - -#Create object to read images from camera 0 -#cam = cv2.VideoCapture(0) - -#Initialize SURF object -surf = cv2.SURF(85) - -#Set desired radius -rad = 2 - -#while True: -#Get image from webcam and convert to greyscale -#ret, img = cam.read() -fn = sys.argv[1] -gray = cv2.imread(fn, 0) -#gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) - -#Detect keypoints and descriptors in greyscale image -keypoints, descriptors = surf.detect(gray) - -#Draw a small red circle with the desired radius -#at the (x, y) location for each feature found -for kp in keypoints: - x = int(kp.pt[0]) - y = int(kp.pt[1]) - cv2.circle(img, (x, y), rad, (0, 0, 255)) - -#Display colour image with detected features -cv2.imshow("features", img) - -#Sleep infinite loop for ~10ms -#Exit if user presses -#if cv2.waitKey(10) == 27: -# break \ No newline at end of file