openmv/scripts/examples/OpenMV/12-Thermopile-Shield/MLX90621_camera.py
iabdalkader 5a6b4b2f1c Update Examples.
* Move examples to sub dirs.
* Add Arduino examples dir.
2020-11-16 23:03:02 +02:00

21 lines
378 B
Python

# MLX90621 Camera Demo
#
# This example shows off how to overlay a heatmap onto your OpenMV Cam's
# live video output from the main camera.
import image, time, fir
# Initialize the thermal sensor
fir.init(type=fir.FIR_MLX90621)
# FPS clock
clock = time.clock()
while (True):
clock.tick()
img = fir.snapshot(copy_to_fb=True)
# Print FPS.
print(clock.fps())