Flir Lepton Temperature Readout with automatic gain

Hello,

Im currently using several OpenMV boards for machinevision tasks and now also started to use it with the lepton module.
While it is ok for many scenarios to use a fixed temperature range like in the examples, it would be handy to have automatic gain from time to time.
In the pure_thermal.py example it maps the range with “ta, ir, to_min, to_max = fir.read_ir()” without specifying a range first (maybe I have overlooked that)
But the “fir” module doesnt work on the normal openmv.
Is it in any way possible to get temperatures from the lepton when its used in automatic mode or dynamically adjust the range?

I was also thinking about setting a wider range and dynamically “expand” the greyscale range that is interesting (as in, the min -max range of the current picture) and add ironbow afterwards

Thanks in advance!
PS: Your products are great!

Hi, the FIR module doesn’t allow the use of AGC mode for the FLIR Lepton, as it tries to give the actual temperature readings.

The min/max are just the range of temperature readings in the array. Since it returns the reading results in floats, you have the complete list of temperatures available. Drawing the array, then just clamps values between the min/max you specify if you use draw_ir or whatever the min and max are of the array.

If you’d like AGC mode you can use it as the main sensor with on our normal camera modules with the flir lepton adapter we sell. You have the option of using AGC or no AGC in this case.