mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
9 lines
203 B
Python
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)) |