mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
9 lines
185 B
Python
9 lines
185 B
Python
import sensor
|
|
sensor.set_contrast(1)
|
|
sensor.set_gainceiling(8)
|
|
sensor.set_framesize(sensor.QQVGA)
|
|
sensor.set_pixformat(sensor.RGB565)
|
|
|
|
image = sensor.snapshot()
|
|
image.save("/test.ppm")
|