mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update write image example
This commit is contained in:
parent
c76f04baf5
commit
2142219e20
@ -1,3 +1,4 @@
|
|||||||
import sensor, time
|
import sensor, time
|
||||||
sensor.set_pixformat(sensor.GRAYSCALE)
|
sensor.set_framesize(sensor.QCIF)
|
||||||
sensor.snapshot().save("0:/test.ppm", subimage=(0, 0, 10,10))
|
sensor.set_pixformat(sensor.RGB565)
|
||||||
|
sensor.snapshot().save("1:/test.ppm")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user