How to read binary "thermal data" tag

Started by atharjavaid, June 20, 2022, 07:50:37 AM

Previous topic - Next topic

atharjavaid

I am new with exiftool. I have thermal image which does not have '-rawthermalimage', instead it has 'Thermal Data'. I am facing problem to read the the binary data associated with this tag. Here the image and the metadata is attached.

StarGeek

The file you uploaded has a RawThermalImage
C:\>exiftool -G -a -s -*Thermal* Y:\!temp\ccc\DJI_0379_T.jpg
[FLIR]          RawThermalImageWidth            : 320
[FLIR]          RawThermalImageHeight           : 240
[FLIR]          RawThermalImageType             : TIFF
[FLIR]          RawThermalImage                 : (Binary data 153804 bytes, use -b option to extract)


It's also not the one in your exiftool output, as the files sizes don't match (1008 kB vs 214 kB).
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Hubert


atharjavaid

Sorry, Here are the said files, exiftool version 12.42, windows 11 HOME

atharjavaid

Thanks for the response, here is the output i get with the real files

exiftool -G -a -s -*Thermal* DJI_0397_T.jpg
[APP3]          ThermalData                     : (Binary data 655360 bytes, use -b option to extract)
[APP5]          ThermalCalibration              : (Binary data 23818 bytes, use -b option to extract)

are the tags I want their binary data to read and convert to temperature.

Phil Harvey

There are easier ways to do this, but here is a cool way to extract both at the same time:

exiftool -thermaldata -thermalcalibration -b -W %d%f-%t.dat FILE

For the file you posted, I get this:

> exiftool -thermaldata -thermalcalibration -b -W %d%f-%t.dat tmp/DJI_MAVIC2-ENTERPRISE-ADVANCED.jpg
    2 output files created
> ls -l tmp
total 3304
-rw-r--r--  1 phil  staff    23818 21 Jun 09:11 DJI_MAVIC2-ENTERPRISE-ADVANCED-ThermalCalibration.dat
-rw-r--r--  1 phil  staff   655360 21 Jun 09:11 DJI_MAVIC2-ENTERPRISE-ADVANCED-ThermalData.dat
-rwxr-xr-x@ 1 phil  staff  1008283 21 Jun 09:08 DJI_MAVIC2-ENTERPRISE-ADVANCED.jpg


- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

atharjavaid

wao, that is really great. However, the output is a .dat file with a lot of strange characters.

I want to get temperature. Can some one help to get it out of the extracted .dat files? Here are the two extracted files attached. 

StarGeek

The best that can be offered would probably be this thread.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype