例程讲解12-Thermopile-Shield->fir_lcd带LCD的热电堆扩展
import sensor, image, time, fir, lcd
sensor.reset()
sensor.set_contrast(1)
sensor.set_brightness(0)
sensor.set_saturation(2)
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA2)
if (sensor.get_id() == sensor.OV2640):
sensor.__write_reg(0xFF, 0x01)
sensor.__write_reg(0x17, 0x19)
sensor.__write_reg(0x18, 0x43)
fir.init()
lcd.init()
clock = time.clock()
while(True):
clock.tick()
image = sensor.snapshot()
ta, ir, to_min, to_max = fir.read_ir()
fir.draw_ir(image, ir)
image.draw_string(0, 0, "Ta: %0.2f"%ta, color = (0xFF, 0x00, 0x00))
image.draw_string(0, 8, "To min: %0.2f"%to_min, color = (0xFF, 0x00, 0x00))
image.draw_string(0, 16, "To max: %0.2f"%to_max, color = (0xFF, 0x00, 0x00))
lcd.display(image)
print(clock.fps())
星瞳科技OpenMV官方中文文档函数讲解:
星瞳科技OpenMV官方中文文档函数讲解: