groupgets / pylepton

Quick and dirty pure python library for interfacing with FLIR lepton
MIT License
208 stars 93 forks source link

Extrange range temperatures using Lepton3 #70

Open Seikon opened 2 years ago

Seikon commented 2 years ago

Hi, I am using Lepton 3.5 camera and Breakout board V2. When using pylepton and performing some statistics counts over frame (with my hand in front of the camera), I get these extange temperature ranges:

frame processed int 0.056710243225097656s, 17.63349869671235hz Median: -65.83 °C Min: -273.0°C Max: -56.849999°C

And Here is the code to get these results:

def calculate(data):
    celsius = (data / 100) - 273

    medianT = np.median(celsius)
    minT = np.min(celsius)
    maxT = np.max(celsius)

    return (medianT, minT, maxT)

Could anybody help me? :) Thanks in advance!

PS: I am aware that the frame object is returning values in centikelvins (K * 100)

Hakeem-AI commented 11 months ago

@Seikon i am looking for the same solution. did you find the solution if you did kindly share with me