openmv/usr/examples/surf_detect_and_draw.py
2014-07-05 03:49:41 +02:00

12 lines
292 B
Python

import sensor, time
# Set sensor to grayscale
sensor.set_pixformat(sensor.GRAYSCALE)
clock = time.clock()
while (True):
image = sensor.snapshot()
clock.tick()
kp = image.find_keypoints(upright=False, thresh=0.004, octaves=1)
image.draw_keypoints(kp)
print (clock.fps())