I have a lepton 3.5 and a open MV Cam h7. As i found it quite difficult to read a specific coordinate temperature reading. I looked into the examples and came across the blob examples. I thought instead of having blobs found I could pass in my own rectangle to get custom readings, however, my readings are all over the place.
First of my method is:
def get_target_temp(x,y,w,h): img.draw_rectangle((x,y,w,h)) img.draw_cross(int(x+(w/2)), int(y+(h/2))) stats = img.get_statistics(thresholds=threshold_list, roi=(x,y,w,h)) img.draw_string(x, y - 10, "%.2f C" % map_g_to_temp(stats.mean()), mono_space=False) print("%.2f C" % map_g_to_temp(stats.mean()))
However, my temperature stays to always lean towards the maximum temperature I set in the code. I don’t understand the correlation between the threshold list, 0-255 and the min and max temp. I’m assuming their is a certain formula to get the threshold values based on the temperature.
But when the threshold is 0,255 and the min temp is -10 and the max is 140, and my face is within the square i get a reading of 61.76 C.
I am very confused and would appreciate any help!