Effacer les filtres
Effacer les filtres

How do I read in GPS information from EXIF data in geotagged JPEG images?

7 vues (au cours des 30 derniers jours)
Dustin
Dustin le 29 Juil 2011
I have a bunch of geotagged JPEG images, and want to read the GPS information from the EXIF data into the MATLAB workspace. Both exifread() and imfinfo() do not return this information, though most other information is returned.
Does anyone have any tips on how I should go about doing this?
  3 commentaires
Dustin
Dustin le 2 Août 2011
Thanks a lot, Ashish. I just missed seeing the structure, while looking for the GPSLatitude and GPSLongitude fields.
In the meantime, I used a workaround (if that's what you can call it). I used exiftool to export all the EXIF data to a text file, and then used textscan to read in and parse the required fields.
Ashish Uthama
Ashish Uthama le 2 Août 2011
Dustin, you can 'accept' your own answer too :)

Connectez-vous pour commenter.

Réponse acceptée

Dustin
Dustin le 2 Août 2011
As mentioned by Ashish in the above comment, imfinfo returns a GPSInfo structure containing the required data.

Plus de réponses (0)

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by