mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
12 lines
226 B
Python
12 lines
226 B
Python
import sensor, time, led
|
|
|
|
# Set sensor contrast
|
|
sensor.set_contrast(1)
|
|
# Set sensor brightness
|
|
sensor.set_brightness(-1)
|
|
# Set sensor pixel format
|
|
sensor.set_pixformat(sensor.RGB565)
|
|
|
|
while (True):
|
|
image = sensor.snapshot()
|