mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
10 lines
194 B
Python
10 lines
194 B
Python
import sensor, time
|
|
sensor.set_framesize(sensor.VGA)
|
|
sensor.set_pixformat(sensor.JPEG)
|
|
sensor.set_quality (98)
|
|
|
|
image = sensor.snapshot()
|
|
f = open("1:/test.jpeg", "wb")
|
|
f.write(image)
|
|
f.close()
|