Using PyLepton for Radiometric data from Lepton 3.5 + Raspberry Pi

805 views
Skip to first unread message

hwy...@gmail.com

unread,
Dec 8, 2018, 11:02:19 PM12/8/18
to Flir Lepton
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

Anto Joeis

unread,
Dec 13, 2018, 1:43:45 PM12/13/18
to Flir Lepton
hi bro i was new to lepton 3.5 camera .. as well in python.. i need small help in lepton camera 3.5 using breadboard v1.4 ... using raspberry pi ... i need to take picture using this ... can u plz help me to modify code plz

Umut TOPRAK

unread,
Jul 11, 2019, 8:43:53 AM7/11/19
to Flir Lepton
Hi Joeis did you solve your problem? 

Lu Qiao

unread,
Nov 25, 2019, 3:56:31 AM11/25/19
to Flir Lepton
hi bro,how to gain the 160*120 array
thanks


On Sunday, December 9, 2018 at 12:02:19 PM UTC+8, hwy...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages