I have the lepton 3.5 connected to an Rpi 3 over i2c+spi. From python I'm using pylepton (Lepton3 branch) to get data.
It returns a 160x120 array with values ranging from 0-29515. I'm simply converting the kelvin value by the following way, for example minimum temperature reading:
min_t = (((a.min()-27315)/100.0)*1.8+32)
And so I'm getting temperature values. Is this the actual radiometric data I'm getting? If this is bad data and there is a different way to get radiometric data please let me know.
Thanks!
The whole capture function I'm usingL
def capture(flip_v = False, device = "/dev/spidev1.0"):
with Lepton3(device) as l:
a,_ = l.capture()
min_t = (((a.min()-27315)/100.0)*1.8+32)
max_t = ((a.max()-27315)/100.00)*1.8+32
cv2.normalize(a, a, 0, 65535, cv2.NORM_MINMAX)
np.right_shift(a, 8, a)
return np.uint8(a), max_t, min_t