openmv/usr/examples/color_detection.py
2014-02-21 23:06:36 +02:00

7 lines
159 B
Python

from openmv import sensor, imlib
while (True):
image = sensor.snapshot()
r= imlib.detect_color(image, (340, 50, 50), 10)
imlib.draw_rectangle(image, r)