Extracting any pixel temperature data from the frame using Lepton

Discussion related to "under the hood" OpenMV topics.
jubi5312
Posts: 19
Joined: Tue Jul 09, 2019 2:05 pm

Extracting any pixel temperature data from the frame using Lepton

Postby jubi5312 » Fri Jan 03, 2020 7:39 pm

Hi,

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,
~Jubin
User avatar
kwagyeman
Posts: 4455
Joined: Sun May 24, 2015 2:10 pm

Re: Extracting any pixel temperature data from the frame using Lepton

Postby kwagyeman » Fri Jan 03, 2020 8:14 pm

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.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests