简体   繁体   English

使用CWAC相机进行地理标记

[英]Geotagging with cwac-camera

I'd like to use cwac-camera for taking photos. 我想用cwac相机拍照。

However, I need to capture also location of the place where the photo was taken 但是,我还需要捕获拍摄照片的位置

On my device, I set location on and run the demo provided as part of the library. 在设备上,我在库中设置位置并运行作为示例提供的演示。

The captured photo didn't contain the gps-related information in its EXIF metadata. 捕获的照片在其EXIF元数据中未包含与gps相关的信息。

When I tried then default camera app, the photo captured in this way contained the location in its EXIF metadata. 当我尝试使用默认相机应用程序时,以这种方式拍摄的照片在其EXIF元数据中包含该位置。

So, it seems cwac-camera is not storing the location into EXIF metadata. 因此,似乎cwac相机未将位置存储到EXIF元数据中。

Is it possible to activate storing of the location into EXIF somehow? 是否可以通过某种方式激活将位置存储到EXIF中?

If not, how would you recommend capturing the information? 如果没有,您将如何建议捕获信息?

So, it seems cwac-camera is not storing the location into EXIF metadata. 因此,似乎cwac相机未将位置存储到EXIF元数据中。

Correct. 正确。

Is it possible to activate storing of the location into EXIF somehow? 是否可以通过某种方式激活将位置存储到EXIF中?

You are welcome to find out the location of the device by whatever means you choose. 欢迎您以任何选择的方式查找设备的位置。 You are then welcome to call appropriate methods on Camera.Parameters , like setGpsLatitude() , to supply that information to the Camera , and see if that works. 然后,欢迎您在Camera.Parameters上调用适当的方法,例如setGpsLatitude() ,以将该信息提供给Camera ,并查看其是否有效。 In the current API, a likely place to do this work is in adjustPictureParameters() on your CameraHost . 在当前的API中,执行此工作的可能位置是adjustPictureParameters()上的CameraHost adjustPictureParameters()

It's possible that I may need to amend the library to retain those EXIF headers through the ImageCleanupTask , if they are not already being retained. 如果尚未保留那些EXIF标头,则可能需要通过ImageCleanupTask修改该库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM