gpereyrairujo / IRimage

IRimage: Open source software for processing images from consumer thermal cameras
GNU Affero General Public License v3.0
42 stars 4 forks source link

IRimage process RJEG from different sensors #1

Open zahrada opened 2 years ago

zahrada commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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