如何在Mac中使用Exiftool添加GPS纬度和经度(如何在jpeg中编辑元数据) [英] How to add GPS latitude and longitude using Exiftool in mac (how to edit meta data in jpeg)
问题描述
我有一堆从FLIR相机获得的jpeg图像.除了这些图像,我还收集了GPS坐标.现在,我正在尝试将GPS纬度和经度用于图像的元数据.
I have a bunch jpeg image that is obtained from FLIR camera. Along with that images I collected the GPS coordinates also. Now I'm trying to take the GPS latitude and longitude to the metadata of the image.
我用R编程语言编写了一个程序,以查找相对于时间的每个图像的GPS位置(当GPS位置时间和相机时间匹配时,我便获取该坐标).
I wrote a program in R programming language to find the GPS location of each image with respect to the time(when ever the GPS location time and the camera time matches, I took that coordinates).
即,对于特定图像,我具有GPSLatitude<-19.33423和GPSLongitude<-72.090834
ie, for a particular image, I have GPSLatitude <- 19.33423 and GPSLongitude <- 72.090834
但是现在我需要将这些确切的GPS位置添加到图像中.
But now I need to add those exact GPS location to the image.
我试图用Exiftool做到这一点.我正在使用Mac osX sierra.在那我安装了exiftool.但是现在我不知道如何使用它来更新GPS数据.
I tried to do that with Exiftool. I'm using Mac osX sierra. In that I installed exiftool. But now I don't know the how to update GPS data using that.
任何人都可以帮助我.如果可能的话,请让我知道直接从R编程语言本身更新数据的方法
Can anyone help me. If possible let me know the method to update the data directly from the R programming language itself
谢谢
推荐答案
output <- system(sprintf("exiftool -GPSLatitude=%f -GPSLongitude=%f %s",q,p,aa))
或
output <- system(paste("exiftool -GPSLatitude=",q," -GPSLongitude=",p," ", aa))
output <- system(sprintf("exiftool -GPSLatitude=%f -GPSLongitude=%f %s",q,p,aa))
or
output <- system(paste("exiftool -GPSLatitude=",q," -GPSLongitude=",p," ", aa))
这篇关于如何在Mac中使用Exiftool添加GPS纬度和经度(如何在jpeg中编辑元数据)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!