openmv/scripts/examples/01-Camera/05-Thermal-Cameras/02-FLIR-Boson/ironbow_streaming.py
2024-12-09 11:56:12 -08:00

24 lines
577 B
Python

# This work is licensed under the MIT license.
# Copyright (c) 2013-2024 OpenMV LLC. All rights reserved.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# This example shows off streaming an ironbow image from the FLIR Boson.
import sensor
import time
import image
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
sensor.set_framesize(sensor.VGA) # Must always be VGA or QVGA.
sensor.set_color_palette(image.PALETTE_IRONBOW)
clock = time.clock()
while True:
clock.tick()
img = sensor.snapshot()
print(clock.fps())