mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add FPS counter
This commit is contained in:
parent
03d99e2a1b
commit
fa541c6ecd
9
usr/examples/fps.py
Normal file
9
usr/examples/fps.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import sensor, imlib, time
|
||||||
|
clock = time.clock()
|
||||||
|
while (True):
|
||||||
|
clock.tick()
|
||||||
|
|
||||||
|
# take snapshot
|
||||||
|
image = sensor.snapshot()
|
||||||
|
|
||||||
|
print (clock.fps())
|
||||||
Loading…
Reference in New Issue
Block a user