openmv/usr/examples/circle.py
2014-06-19 23:21:59 +02:00

9 lines
203 B
Python

import sensor
# Set sensor to grayscale
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_brightness(-2)
image = sensor.snapshot()
image.draw_circle((50, 50), 10)
image.draw_rectangle((10, 10, 50, 50))