We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
以下是如何使用 pyexiv2 库设置 GPS 位置的示例。 我通过将地理标记图像上传到 Panoramio 测试了此脚本
Here is an example how to set GPS position using pyexiv2 library. I've tested this script by uploading geotagged image to Panoramio
pexif 是以地理标签为目标编写的(我的重点):
pexif was written with geotags as a goal (my emphasis):
我自己还没有尝试过,但从文档 [pyexiv2][1] 看来它应该可以完成这项工作。
[1]: http://tilloy.net/dev/pyexiv2/tutorial.html #link 缺少最后一个字符
I haven't tried it myself, but from the documentation [pyexiv2][1] looks like it should do the job.
[1]: http://tilloy.net/dev/pyexiv2/tutorial.html #link was missing last character
上面的代码可以工作,但我必须修改 set_gps_location 函数才能使用当前版本的 pyexiv2...也许 Maksym 使用的是旧版本:
the above code works, but I had to modify the set_gps_location function to work with the current version of pyexiv2...perhaps Maksym was using an older version:
pyexiv2 现已弃用,取而代之的是基于 GObject 的 GExiv2
libexiv2 的包装。
pyexiv2 is now deprecated in favour of GExiv2, a GObject-based
wrapper around libexiv2.