Deer photos and Therm-App Pro data - Page 1
Forum section: electronics / general

author: Ultrapurple
author_rank: Super Contributor
timestamp: August 18, 2021, 09:04:16 am
content: There has been technical discussion on the Image Gallery II thread about an image I made of two deer.The discussion starts here:https://www.eevblog.com/forum/thermal-imaging/thermal-imaging-gallery-ii/msg3624069/#msg3624069Several EEVblog members collaboratively reprocessed the image (starting from the raw data) and we ended up with a rather nice version:Discussion then turned to the content ofthe data files that I postedand whether they represented an accurate view of the scene temperature. At that point we'd strayed a long way off the Thermal Imaging Gallery topic so I started this new thread.I plan to make an image with ice-water and boiling water and image it with the same camera (Therm-App Pro) to provide more data on the relationship between the thermal values read from the sensor and those of the scene.

author: JimM
author_rank: Regular Contributor
timestamp: August 18, 2021, 04:43:27 pm
content: QuoteThanks Ultrapurple, that's a lot of work for you.

author: IwuzBornanerd
author_rank: Frequent Contributor
timestamp: August 18, 2021, 11:24:52 pm
content: Quote from: JimM on August 13, 2021, 09:32:30 pmIt is worth noting that, per one of the comments in that stackoverflow page, the camera used is a Therm-App TH. Somewhere I got the idea that the model TH is the only one for which the company's own app provides temperature values. I stopped concerning myself with what the Thermviewer file numbers are because I figured if the manufacturer itself does not provide temperature values for a particular model of its cameras the author of Thermviewer is not likely to get them right. While the particular lens that is attached at the time is certainly a factor that needs to be included, it seems that one would have to also know how the sensor is "tuned" in order to obtain temperature values from the raw data.

author: Bill W
author_rank: Super Contributor
timestamp: August 19, 2021, 12:31:37 am
content: Assuming it really is raw sensor data (ie 14 bit ADC readings) then rather than knowing how the sensor is tuned you simply .......need the raw data that would be used for a standard manufacturer calibration.The temperatures do not matter much, but using the usual quoted ones you need 3 frames:Data (20°C flat scene)Data (35°C flat scene)Data (real scene)Then simply crunch the numbers for each pixel for which ImageJ 'image calculations' or even a spreadsheet will do.Typical ImageJ screens attached, from an ASi sensor, for the first step of (scene - 20°C flat) which is a remarkably credible image given there is no gain correction in there at all.You then convert to temperature by multiplying each pixel value by its' corresponding [35 flat - 20 flat]/15 and add 20.That works OK for around ambient, for further away you need to realise that the calibration is in terms of 'energy of a temperature of' not actual °C, so you need to correct for Planck curve effects or get very silly values once going much over 100°C.Bill

author: JimM
author_rank: Regular Contributor
timestamp: August 19, 2021, 01:09:06 am
content: QuoteGood find. That may explain another point. In the Matlab code in the stackoverflow page, the image had to be rotated 90 deg to get the correct orientation. However for Ultrapurple's Therm-App Pro image you needed to mirror the image to get the correct orientation. I guess different software for the two cameras.

author: JimM
author_rank: Regular Contributor
timestamp: August 19, 2021, 04:45:09 pm
content: Quote from: Ultrapurple on August 18, 2021, 09:04:16 amI don't know if you have embarked on this project yet, but I don't think this will resolve the issue. Undoubtedly, the temp.txt file will show something near 0 deg C for the ice-water and something near 100 deg C for the boiling water. However, I think there are too many unknowns to determine how to modify the temps to get to the correct temps. For that matter how do you know that the ice-water is exactly at 0 deg C, etc. I was hoping someone had documentation that explained the temp.txt file rather than having to do reverse engineering of the file. (Not that there's anything wrong with reverse engineering).

author: IwuzBornanerd
author_rank: Frequent Contributor
timestamp: August 21, 2021, 10:15:01 pm
content: Quote from: Bill W on August 19, 2021, 12:31:37 amThanks Bill; it was the characteristics of the curve for the particular sensor that I was thinking of regarding how the sensor is tuned. I also was thinking that there was no flat-field data, but I now recall that Ultrapurple has in the past said there are quite a few calibration files for the camera. And I also thought there was no SDK for Therm-App, but according to the description of Thermviewer it was based on an SDK, so I suppose the SDK "knows" how to use the cal data, and therefore Thermviewer could be generating legitimate numbers, but then the question is whether they incorporate the emissivity, etc. mentioned on the stackoverflow page. Someone who has purchased Thermviewer should make a "support" request...

author: IwuzBornanerd
author_rank: Frequent Contributor
timestamp: August 21, 2021, 10:19:54 pm
content: Quote from: JimM on August 19, 2021, 04:45:09 pmDoes anyone on this forum have the ThermApp SDK such that they could see if the SDK doc's provide such information, or has anyone asked the Thermviewer author for that info.?As for sample images, including something from the freezer would be useful.

author: therwp
author_rank: Contributor
timestamp: August 22, 2021, 07:03:34 am
content: If it would help, I am happy to contribute a second set of maybe-calibration images from my ThermApp Pro.

author: Ultrapurple
author_rank: Super Contributor
timestamp: August 23, 2021, 08:00:58 am
content: Quote from: therwp on August 22, 2021, 07:03:34 amI would appreciate that. The files should be in your ThermApp (or ThermViewer) directory, in a sub-directory named the same as your camera's serial number. Zipping them together reduces the file size.If you don't want to post the files publicly, please drop me a PM and I'll give you my email address.