mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
10 lines
225 B
Python
10 lines
225 B
Python
import sensor, time
|
|
sensor.set_framesize(sensor.QCIF)
|
|
sensor.set_pixformat(sensor.GRAYSCALE)
|
|
clock = time.clock()
|
|
while (True):
|
|
image = sensor.snapshot()
|
|
clock.tick()
|
|
image.median(size = 3)
|
|
print(clock.fps())
|