mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update FB Viewer
This commit is contained in:
parent
e5562ada89
commit
b5d6de47ee
@ -1,20 +1,18 @@
|
|||||||
import sensor, time
|
import sensor, time
|
||||||
|
|
||||||
sensor.reset()
|
sensor.reset()
|
||||||
|
|
||||||
# Set sensor parameters
|
# Set sensor parameters
|
||||||
sensor.set_brightness(-2)
|
|
||||||
sensor.set_contrast(1)
|
sensor.set_contrast(1)
|
||||||
#sensor.set_gainceiling(5)
|
sensor.set_gainceiling(8)
|
||||||
|
|
||||||
# Set sensor pixel format
|
# Set sensor pixel format
|
||||||
sensor.set_framesize(sensor.QVGA)
|
sensor.set_framesize(sensor.QVGA)
|
||||||
sensor.set_pixformat(sensor.JPEG)
|
sensor.set_pixformat(sensor.JPEG)
|
||||||
sensor.set_quality(98)
|
sensor.set_quality(95)
|
||||||
|
|
||||||
clock = time.clock()
|
clock = time.clock()
|
||||||
|
|
||||||
while (True):
|
while (True):
|
||||||
clock.tick()
|
clock.tick()
|
||||||
image = sensor.snapshot()
|
image = sensor.snapshot()
|
||||||
|
time.sleep(1)
|
||||||
print(clock.fps())
|
print(clock.fps())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user