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

IRimage process RJEG from different sensors #1

Open
zahrada opened this issue Jan 17, 2022 · 6 comments
Open

IRimage process RJEG from different sensors #1

zahrada opened this issue Jan 17, 2022 · 6 comments

Comments

@zahrada
Copy link

zahrada commented Jan 17, 2022

I try to process RJPEG data from diffrent sensors like DJI Mavic 2 Enterprice Advance and Wiris PRO. Always appears a error - Index (2) out of 0-1 range in line 133.

Is it problem on my pc ?

I used ImageJ + IRimages plugin

dir * "C:\Users\dzahr\Desktop\ImageJ\TIR_DJI_EKO"
options * array[3]
selection * "Set global parameters for all images"
parametersFromImage * 0
globalParameters * 1
parametersFromFile * 0
dirRAW_PNG * "C:\Users\dzahr\Desktop\ImageJ\TIR_DJI_EKO\raw"
dirTEXT * "C:\Users\dzahr\Desktop\ImageJ\TIR_DJI_EKO\text"
dirCOLOR * "C:\Users\dzahr\Desktop\ImageJ\TIR_DJI_EKO\color"
dirTEMP * "C:\Users\dzahr\Desktop\ImageJ\TIR_DJI_EKO\temp"
dirRESULTS * "C:\Users\dzahr\Desktop\ImageJ\TIR_DJI_EKO\results"
dirIRimage * "C:\Users\dzahr\Desktop\ImageJ\plugins\IRimage"
dirExifTool * "C:\Users\dzahr\Desktop\ImageJ\plugins\IRimage\exiftool"
dirPalette * "C:\Users\dzahr\Desktop\ImageJ\plugins\IRimage\palette"
list * array[1205]
firstfile * 1
i * 1
isjpg * 1
imageNameExt * "DJI_1.JPG"
imageName * "DJI_1"
path * "C:\Users\dzahr\Desktop\ImageJ\TIR_DJI_EKO\DJI_1.JPG"
extract * 1
userdialog * 1
parameters * "Relative Altitude : +19.47 | Date/Time Original : 2021:..."
rows * array[2]
n_params * 15
param * array[15]
value * array[15]
j * 2
columns * array[6]


Error: Index (2) out of 0-1 range in line 133:

	columns = split ( rows [ j <]> , ":" ) ; 
@gpereyrairujo
Copy link
Owner

Hi @zahrada , thanks for testing the code with new image formats!
It's very likely that the information is stored somehow differently in these thermal images, and that is the reason IRimage is not able to process them correctly.
Would it be possible for you to share some of the images you have been testing? If the format is not so different to the FLIR format, it might be possible to process them. I'm not at all sure it would work, but if it does it could be an interesting new feature.

@zahrada
Copy link
Author

zahrada commented Feb 4, 2022

Hi @gpereyrairujo, thanks for respond. I will send you different format what I have.
-DJI Mavic 2 Enterprice Advance
-Wiris PRO
Wiris Pro has Flir sensor and DJI has Microbolometr sensor

https://drive.google.com/drive/folders/1vaD7q_gHn9T-sQtU5vjmyMdcpLD7t1Qk?usp=sharing
If google folder is not working, send me email and I will enable sharing.

I am interested in which software are you look at metadata. Thanks

@gpereyrairujo
Copy link
Owner

Hi again @zahrada. Thanks for the files, they will be very useful!

I use the software "exiftool" to look at the metadata. You can download it from https://www.exiftool.org, but if you downloaded IRimage you will also find it there in a subfolder :)

I checked the images you sent me and the file format is indeed different than that of FLIR-branded cameras (and that is why it was not working for you). The good news is that, at least for the DJI files, it seems to be possible to access the raw data and parameters using exiftool. If you run exiftool on one of those files you will see an output like this:

imagen

There is a lot of information there, but the interesting part is the "Thermal Data" and "Thermal Calibration" tags, which probably contain the info we need.

Unfortunately, the output for the Wiris files is much smaller, and the raw data and parameters don't seem to be accessible through exiftool :(

imagen

Based on these results, I will try to look into the data in the "Thermal Data" and "Thermal Calibration" tags in the DJI files to see if it can be processed with IRimage. I hope it works!

@zahrada
Copy link
Author

zahrada commented Feb 24, 2022

Hi @gpereyrairujo ,
thank you for respond and advise. I will use DJI thermal cameras predominantly for aerial thermography. My focus is getting raw thermal data from DJI to avoid DJI softwares. Also I create mesh model and orthomosaic from thermal images from for inspection. I am PhD student on CTU in Prague.

@gpereyrairujo
Copy link
Owner

Hi @zahrada ,

I have added an alternative version of the plugin that is able to process images from DJI thermal cameras. It should be able to process the images from your DJI Mavic 2 Enterprise Advanced.

It's been over a year since you asked and probably you found another solution, but in case you haven't, I hope this can be useful for you

Best regards,
Gustavo

@zahrada
Copy link
Author

zahrada commented Jun 15, 2023

HI @gpereyrairujo,
this sounds good. I glad to test the plugin. I start to use https://www.sensesoft.eu/sense-batch.html.

Best regards,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants