drewnoakes / metadata-extractor-dotnet

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Other
922 stars 164 forks source link

Unparsed Thermal metadata support #326

Open kirk-marple opened 1 year ago

kirk-marple commented 1 year ago

I've found there are DJI drones which are capturing thermal data in RJPEG, but MetadataExtractor isn't exposing them.

EXIFTOOL is finding the information, and the metadata in APP4 is basically what I'm looking to get.

The raw data in APP3/APP5 couldn't hurt either, but not immediately important.

I've attached a few DJI samples with this format.

JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (65532 bytes):
JPEG APP3 (40 bytes):
  ThermalData = .S.S.S.StSWS.RZS.S=TgTsT~TsTlTsTeT9T.S.SKSISHSTS0SASRSASBS7S.R.RER.Q.Q.[snip]
JPEG APP4 (2560 bytes):
  + [BinaryData directory, 2560 bytes]
  | K1 = -185.820404052734
  | K2 = 25.5351409912109
  | K3 = 767.396240234375
  | K4 = 0
  | KF = 80.7309722900391
  | B1 = 0
  | B2 = -556
  | ObjectDistance = 5
  | RelativeHumidity = 70
  | Emissivity = 100
  | Reflection = 230
  | AmbientTemperature = 21
  | D2 = -945
  | KJ = 100
  | DB = 0
  | KK = 365
JPEG APP5 (32768 bytes):
  ThermalCalibration = A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.[snip]

DJI.zip