mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update MLX90640 scripts.
This commit is contained in:
parent
c372ffe5a2
commit
ad533135e3
@ -6,7 +6,7 @@
|
|||||||
import image, time, fir
|
import image, time, fir
|
||||||
|
|
||||||
# Initialize the thermal sensor
|
# Initialize the thermal sensor
|
||||||
fir.init(type=fir.FIR_MLX90640, refresh=16) # Hz (higher end OpenMV Cam's may be able to run faster)
|
fir.init(type=fir.FIR_MLX90640, refresh=32) # 16Hz, 32Hz or 64Hz.
|
||||||
|
|
||||||
# FPS clock
|
# FPS clock
|
||||||
clock = time.clock()
|
clock = time.clock()
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
import image, time, fir, lcd
|
import image, time, fir, lcd
|
||||||
|
|
||||||
# Initialize the thermal sensor
|
# Initialize the thermal sensor
|
||||||
fir.init(type=fir.FIR_MLX90640, refresh=16) # Hz (higher end OpenMV Cam's may be able to run faster)
|
fir.init(type=fir.FIR_MLX90640, refresh=32) # 16Hz, 32Hz or 64Hz.
|
||||||
|
|
||||||
# Init the lcd.
|
# Init the lcd.
|
||||||
lcd.init()
|
lcd.init()
|
||||||
|
|||||||
@ -13,7 +13,7 @@ sensor.set_framesize(sensor.QQVGA)
|
|||||||
sensor.skip_frames(time = 2000)
|
sensor.skip_frames(time = 2000)
|
||||||
|
|
||||||
# Initialize the thermal sensor
|
# Initialize the thermal sensor
|
||||||
fir.init(type=fir.FIR_MLX90640, refresh=16) # Hz (higher end OpenMV Cam's may be able to run faster)
|
fir.init(type=fir.FIR_MLX90640, refresh=32) # 16Hz, 32Hz or 64Hz.
|
||||||
|
|
||||||
# Allocate another frame buffer for smoother video.
|
# Allocate another frame buffer for smoother video.
|
||||||
extra_fb = sensor.alloc_extra_fb(sensor.width(), sensor.height(), sensor.RGB565)
|
extra_fb = sensor.alloc_extra_fb(sensor.width(), sensor.height(), sensor.RGB565)
|
||||||
|
|||||||
@ -13,7 +13,7 @@ sensor.set_framesize(sensor.QQVGA2)
|
|||||||
sensor.skip_frames(time = 2000)
|
sensor.skip_frames(time = 2000)
|
||||||
|
|
||||||
# Initialize the thermal sensor
|
# Initialize the thermal sensor
|
||||||
fir.init(type=fir.FIR_MLX90640, refresh=16) # Hz (higher end OpenMV Cam's may be able to run faster)
|
fir.init(type=fir.FIR_MLX90640, refresh=32) # 16Hz, 32Hz or 64Hz.
|
||||||
|
|
||||||
# Init the lcd.
|
# Init the lcd.
|
||||||
lcd.init()
|
lcd.init()
|
||||||
|
|||||||
@ -13,7 +13,7 @@ sensor.set_framesize(sensor.QQVGA)
|
|||||||
sensor.skip_frames(time = 2000)
|
sensor.skip_frames(time = 2000)
|
||||||
|
|
||||||
# Initialize the thermal sensor
|
# Initialize the thermal sensor
|
||||||
fir.init(type=fir.FIR_MLX90640, refresh=16) # Hz (higher end OpenMV Cam's may be able to run faster)
|
fir.init(type=fir.FIR_MLX90640, refresh=32) # 16Hz, 32Hz or 64Hz.
|
||||||
|
|
||||||
# Allocate another frame buffer for smoother video.
|
# Allocate another frame buffer for smoother video.
|
||||||
ir_buffer = image.Image(fir.width() * IR_SCALE, fir.height() * IR_SCALE, sensor.GRAYSCALE)
|
ir_buffer = image.Image(fir.width() * IR_SCALE, fir.height() * IR_SCALE, sensor.GRAYSCALE)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user