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.
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.
After research, I found that drawing before computing messes with the source image. Well noted, this gave me a way better accurate reading! Now what is the correlation between the min temperature and the min threshold and the max temperature to the max threshold?
The min and max temperatures are scaled to 0-255 because the temps are returned in an image (pixels go from 0->255)… The threshold part is to filter the pixels in that image. I’m guessing that it’s finding objects with temps between 31 and 35 degrees, but I didn’t actually write that example, so I could be wrong. Kwabena will be able to give you a better answer.
Thresholding is done to only select the pixels in the rectangle selected by the ROI which are in the range of the temperature you are trying to read. You don’t need it. However, without it then you will compute the stats on all pixels and not just the ones within the threshold.
Okay, I have my threshold between 0 and 255 and my min at 34 and max at 41. I was asking because within the example lepton_get_object_temp it has the min at 20 and max at 35 where the threshold is 200 to 255. I didn’t understand why it wasn’t 0 to 255. I though there was some correlation depending on min and max temperature values.