Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package not extracting thermal image data #21

Closed
RussellGrayxd opened this issue May 3, 2022 · 1 comment
Closed

Package not extracting thermal image data #21

RussellGrayxd opened this issue May 3, 2022 · 1 comment
Labels
incorrect file type non-radiometric file type used, causing error

Comments

@RussellGrayxd
Copy link

I have a dji mavic 2 enterprise advanced and collected a few thermal images I would like to analyze in R (see example attached). However, when I try to read in the data I get and error message (see code and error below):

##########################

Thermal image analysis

##########################
setwd("D:/Detections")
list.files()
library(Thermimage)
library(fields)
f <- "D:/Detections/DJI_0067_T_S.JPG"
img <- readflirJPG(f, exiftoolpath="installed")

Warning: [minor] Bad MakerNotes directory - D:/Detections/DJI_0067_T_S.JPG
Error in if (cams$Info$RawThermalImageType == "TIFF") { :
argument is of length zero
In addition: Warning message:
In readflirJPG(f, exiftoolpath = "installed") :
Exiftool cannot extract raw thermal image data.
Image does not contain FLIR radiometric data.
Check with the user manual or manufacturer
or ensure camera is set to save radiometric information.

There is nothing wrong with the radiometric data, I have read this same image into the DJI thermal analysis tool without issue.
I am running Windows 10. with R 4.0.3 and freshly installed Thermimage.

DJI_0067_T_S

@gtatters gtatters added the incorrect file type non-radiometric file type used, causing error label May 3, 2022
@gtatters
Copy link
Owner

gtatters commented May 3, 2022

As the error code suggests, exiftool cannot convert this image type using the assumptions built into Thermimage package. The package was only built for FLIR research style cameras, not the drone cameras.

@gtatters gtatters closed this as completed May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incorrect file type non-radiometric file type used, causing error
Projects
None yet
Development

No branches or pull requests

2 participants