简体   繁体   English

更改ISO或快门速度

[英]Change the ISO or shutter speed

I am tring to control the ISO and the shutter speed for the iphone, but it has no API in AVFoundation. 我想控制iphone的ISO和快门速度,但它在AVFoundation中没有API。 It can only change the exposure, wb for iphone. 它只能改变iphone的暴露程度。

How can i control the ISO or shutter speed? 如何控制ISO或快门速度?

Now after iOS 8 I guess, Now you can change the shutter speed and ISO too. 现在在iOS 8之后,我想,现在你也可以改变快门速度和ISO。

By using this function 通过使用此功能

- (void)setExposureModeCustomWithDuration:(CMTime)duration ISO:(float)ISO completionHandler:(void (^)(CMTime syncTime))handler NS_AVAILABLE_IOS(8_0);

of AVCapturedevice class you can set shutter speed and ISO value both for more help you can see the class here . 您可以在AVCapture设备类中设置快门速度和ISO值,以获得更多帮助,您可以在此处查看课程。

discussion 讨论

refer this app for implementation here 请参考此应用程序在此处实施

You unfortunately have very little control over the iPhone camera. 遗憾的是,你很难控制iPhone相机。 You can only lock or unlock the exposure, white balance, and focus modes. 您只能锁定或解锁曝光,白平衡和对焦模式。

Camera+ actually does not have control over anything you described. 相机+实际上无法控制您描述的任何内容。 It used to be able to as it hacked the hardware, which is naturally a great way to get your app rejected by the reviewers. 它曾经能够破解硬件,这自然是让评论者拒绝你的应用程序的好方法。

I hope that iOS6 will give developers greater control as it is a PITA. 我希望iOS6能够为开发人员提供更好的控制,因为它是PITA。

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

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