在iPhone OS 4.0上从相机获取曝光值 [英] Getting exposure values from camera on iPhone OS 4.0

查看:195
本文介绍了在iPhone OS 4.0上从相机获取曝光值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

拍摄照片时可以获取来自照相机的曝光值(不将其保存到SavedPhotos)。 iPhone上的光度计应用程序可能通过使用一些私有API。

Exposure values from camera can be acquired when you take picture (without saving it to SavedPhotos). A light meter application on iPhone does this, probably by using some private API.

这个应用程序只在iPhone 3GS上使用,所以我想它可能以某种方式与创建图像时填充此信息的EXIF数据相关。

That application does it on iPhone 3GS only, so I guess it may be somehow related to EXIF data which is populated with this information when the image is created.

这一切都适用于3GS。

This all applies to 3GS.

iPhone OS 4.0有什么改变?
现在有常规的方法来获取这些值吗?

Has anything changed with iPhone OS 4.0? Is there a regular way to get these values now?

有没有人有一个工作代码示例来获取这些相机/照片设置值?

Does anyone have a working code example for taking these camera/photo setting values?

谢谢

推荐答案

使用AVFoundation在iOS 4.0中,特别是AVCaptureDevice,这里是一个链接 AVCaptureDevice ref 。不确定如果它是你想要的,但你可以看看周围的AVFoundation和可能找到一些有用的东西

With AVFoundation in iOS 4.0 you can mess with exposure, refer specifically to AVCaptureDevice, here is a link AVCaptureDevice ref. Not sure if its exactly what you want but you can look around AVFoundation and probably find some useful stuff

这篇关于在iPhone OS 4.0上从相机获取曝光值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆