Extracting any pixel temperature data from the frame using Lepton


The present code getobjecttemp on OpenMV IDE detect objects uses blob detection and displays the temperature on the screen. I was able to adjust the threshold and target temperature to get the whole frame. I wanted to read temperature value for each pixel in the frame. How can I extract temperature value from any pixel on the frame and download the output as a .csv file?

Thanking you,

You can do this by opening a file in python and then using the get_pixel() method to read each grayscale pixel value. Then you just need to scale the pixel temp (see the example I talk about in your other post) and then write that value to the file. Please note the file will be very large.

Alternatively, you can save a BMP file of the image along with the min and max temp in the file name for transport in a quicker fashion to another machine.