从图像中获取地理标签的开源库?

Open source library to get geotags from images?

是否有开源库可以高效可靠地从图像中获取地理标签?

我想要一些与系统无关的东西,因此是一个库而不是一个程序。我会喜欢一些有据可查的 Python 但任何语言都可以。

我不是在寻找 exif reader 本身,并非所有地理标签都存储在 exif 中。我想要的东西可以找到独立于它们如何存储在图像元数据中的地理标签。

我维护 MetadataExtractor 库,它支持 GPS 数据以及许多其他类型的元数据。

它在以下地方有实现:

这是一个从一批图像生成 Google 地图的示例:

https://github.com/drewnoakes/metadata-extractor/blob/master/Samples/com/drew/metadata/GeoTagMapBuilder.java

您可以使用 GDAL(即使它可能有点矫枉过正)。

The Geospatial Data Abstraction Library (GDAL) is a computer software library for reading and writing raster and vector geospatial data formats, and is released under the permissive X/MIT style free software license by the Open Source Geospatial Foundation.

GDAL 的优势在于它支持 huge number of geotagged formats.

如果您想对您的数据进行快速测试,可以使用 an utility app 打印您想要的内容。