Prerequisites: iOS 8,本地应用程序的任务:开发滑块,显示在摄像头上。滑块必须将摄像机的EV从其最低值更改为尽可能高的值。
问题:
发布于 2016-06-19 09:53:42
来到这里是为了回答这个问题。
这些教程和开放源代码示例代码提供了对如何实现最初询问的内容的完整理解:
现在你满负荷了。
以下是我们交付的结果:https://itunes.apple.com/us/app/slidecam/id1046798471?mt=8
发布于 2016-06-21 12:50:03
只需使用此代码,您就可以设置自定义相机的EV值。确保滑块的值在-8到8之间。
- (IBAction)changeValueOfEVSliderAction:(id)sender
{
UISlider *control = sender;
NSError *error = nil;
AVCaptureDevice *videoDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
if ( [videoDevice lockForConfiguration:&error] ) {
[videoDevice setExposureTargetBias:control.value completionHandler:nil];
[videoDevice unlockForConfiguration];
//self.exposureTargetBiasValueLabel.text = [NSString stringWithFormat:@"%.1f", control.value];
}
}作为@DaddyM的答复,请参阅此AVCamManual:扩展AVCam以使用手动捕获API以获得更多详细信息。
https://stackoverflow.com/questions/30302671
复制相似问题