Forum

Author Topic: Add EIF-GPS information to images  (Read 2636 times)

MaKo

  • Newbie
  • *
  • Posts: 6
    • View Profile
Add EIF-GPS information to images
« on: February 04, 2021, 12:20:03 PM »
Hi,

we are using a modified DJI Matrice 600 to fly our surveys with a mounted Riegl laserscanner and therefore GPS is also mounted on the UAV.
But if I add the images (.jpg) to AgisoftMetashape no information on the GPS location, yaw, pitch, or roll is shown in the reference window, eventhough the images have information about yaw, pitch and roll saved in their metafiles (I checked it with ExifPilot).
Further EIF Files are generated for the laserscanner with GPS Location saved in them, but I could not find a way to add them (merge them by timestamps or so) to the images.

Anyone of you got an idea? Do I need extra tools?


I attached a .psz Metashape file with some images already imported but I am not sure if you can use that. I tried uploading some images but I couldnt because of size limits.. If there is a need for seperate images I can upload them via a cloud later.

Thank you and best wishes,
Matthias

Edit:
I excluded this sentence from the text above, because I now know that the "Import Reference from EXIF" creates markers from your GPS information of the images.
I tried using the "Import Reference from EXIF" Button in the Reference pane of Metashape but I always get the error: "GPS meta data not found".
« Last Edit: February 04, 2021, 01:25:25 PM by MaKo »

Paulo

  • Hero Member
  • *****
  • Posts: 1303
    • View Profile
Re: Add EIF-GPS information to images
« Reply #1 on: February 04, 2021, 02:39:27 PM »
Hi Mako,

I would suggest to load one of the original images to the cloud so Agisoft can check if there are any Exif fields it can read to load position and orientation. As for eif file, it can be loaded into Metashape as long as you know the correspondence between GPS time stamp and sequence of photos taken. So if we suppose first time stamp corresponds to first photo in psz than imort can be as attached capture.

However this is obviously not the case, as altitude in eif file is practically equal to ground altitude and distance between 2 positions in file is very small. So the 2 time stamps in file correspond to positions on the ground.....Also first time stamp 27092.87751 s corresponds to UTC time 07:31:33 a. m. on first day of week (sunday) which is not date time from first photo in psz DSC02525   2020:09:03 09:34:22   

 
« Last Edit: February 04, 2021, 02:50:26 PM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor

MaKo

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Add EIF-GPS information to images
« Reply #2 on: February 04, 2021, 03:02:29 PM »
Hi Paul,

thanks for the quick response.
Yeah it might just be, that the corresponding images to the .eif file I attached here were taken prior to flying with the UAV still on the ground.

I uploaded a selection of photos and all the EIF-Files of the survey to the cloud.

https://drive.boku.ac.at/d/62903be3d35e4b8fbeaa/

The riegl software could connect the timestamps with the images for it's processing purposes, so I think there should be some overlap at least.

Thanks for the help!
Matthias


Paulo

  • Hero Member
  • *****
  • Posts: 1303
    • View Profile
Re: Add EIF-GPS information to images
« Reply #3 on: February 04, 2021, 04:41:18 PM »
Hi Matthias,

yes definitely, your image Exif data does not include any GPS position information.  However, using the eif txt file supplied and editing it so that first image corresponds to 4th time stamp as :

Code: [Select]
time[s] file sequenceID roll[deg] pitch[deg] yaw[deg] omega[deg] phi[deg] kappa[deg] latitude[deg] longitude[deg] altitude[m]
27092.87751 177.507130 0.783458 -94.916429 0.994325 2.416552 -94.920354 48.576465 16.072989 233.356000
27094.37764 177.518048 0.777745 -95.098086 0.995323 2.403021 -95.102114 48.576466 16.072989 233.304000
27192.71890 177.525747 0.863598 -106.708718 1.538715 2.121487 -106.718560 48.576469 16.072991 233.130000
27313.53783 DSC02525.JPG -177.238697 1.323844 -5.381246 2.873762 1.057560 -5.439682 48.576752 16.072799 267.397000
27315.03858 DSC02526.JPG -177.484266 0.692865 -5.172055 2.568027 0.462655 -5.197639 48.576681 16.072794 267.416000
27316.53799 DSC02527.JPG -178.353887 0.726683 -4.809499 1.701331 0.585820 -4.828637 48.576614 16.072786 267.392000
27318.03791 DSC02528.JPG -176.979984 0.728076 -4.848114 3.070837 0.469332 -4.879888 48.576549 16.072778 267.436000
27319.53785 DSC02529.JPG -177.408675 0.525374 -4.631235 2.625318 0.313959 -4.650312 48.576484 16.072770 267.483000
27321.03792 DSC02530.JPG -177.554695 1.153755 -4.856068 2.534530 0.941592 -4.901523 48.576419 16.072763 267.566000
27322.53789 DSC02531.JPG -176.993973 0.958985 -4.610170 3.073609 0.713040 -4.654463 48.576354 16.072757 267.654000
27324.03777 DSC02532.JPG 171.457170 0.487447 -4.794056 -8.473835 1.191753 -4.669357 48.576297 16.072754 267.677000
27338.23786 DSC02533.JPG -176.238950 2.689680 174.997347 -3.984533 -2.345601 174.827416 48.576375 16.072718 267.985000
27339.73775 DSC02534.JPG -175.746142 0.810328 174.619428 -4.311174 -0.405991 174.574051 48.576447 16.072721 267.944000
27341.23800 DSC02535.JPG -177.081855 0.555526 174.287977 -2.958965 -0.261730 174.267068 48.576514 16.072726 267.920000
27342.73803 DSC02536.JPG -174.500786 1.529652 174.374900 -5.623402 -0.976948 174.253450 48.576578 16.072732 267.839000
27344.23785 DSC02537.JPG -175.296319 1.504391 174.130633 -4.833556 -1.010884 174.026177 48.576644 16.072740 267.729000
27345.73805 -175.082077 0.890854 173.859938 -4.985023 -0.357077 173.806137 48.576710 16.072748 267.593000
then I could import lat,lon,alt,omega,phi,kappa with import reference in MS and got successful alignment as seen in attached capture...

What would be good is to know estimated image position and rotation accuracy to better optimize alignment....
« Last Edit: February 04, 2021, 04:51:20 PM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor

MaKo

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Add EIF-GPS information to images
« Reply #4 on: February 04, 2021, 04:58:20 PM »
Dear Paul,

thank you very much! This works perfectly fine!

Now I only have to find a way to automate the merging of various .eif files.

Best wishes,
Matthias