Forum

Author Topic: import geotag (GPS IMU) of images from file  (Read 7689 times)

Roy

  • Newbie
  • *
  • Posts: 22
    • View Profile
import geotag (GPS IMU) of images from file
« on: November 24, 2015, 02:51:39 PM »
Hi.

I have a set of images without geotags and a file (now it's a text file comma separated but it's changeable)
that holds the tagging of the images (name , GPS (phi ,lambda , h) and IMU (yaw, pitch , roll) )

how can I combine them and load to the same chunk so i'll have the images and their geotags.

thanks.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15403
    • View Profile
Re: import geotag (GPS IMU) of images from file
« Reply #1 on: November 24, 2015, 03:04:59 PM »
Hello Roy,

You need to use chunk.loadReference() function. Using format = "csv" and columns = "nxyzabc" arguments you can control the column order (n - label, x/y/z - coordinates, s - accuracy, a/b/c - yaw, pitch, roll).
Best regards,
Alexey Pasumansky,
Agisoft LLC

Roy

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: import geotag (GPS IMU) of images from file
« Reply #2 on: November 24, 2015, 03:53:50 PM »
thanks Alexey!

something still not working though.

when I load the reference is gives "true" massage like it worked but nothing changes

here is the command i write in the console :

myChunk.loadReference("D:\python\scripts\data.csv", 'csv' , columns='nxyzabc',  delimiter=',')

and here is a sample of row in the file :
DJI_0039.JPG,6.118814,4.813623,86.700000,1.0,0.0,90.0

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15403
    • View Profile
Re: import geotag (GPS IMU) of images from file
« Reply #3 on: November 25, 2015, 11:00:59 AM »
Hello Roy,

There's a minor issue that will be fixed in the next update, but currently you can use the following line that works fine:

Code: [Select]
myChunk.loadReference("D:\python\scripts\data.csv", 'csv' , 'nxyzabc',  ',')
Best regards,
Alexey Pasumansky,
Agisoft LLC