0
正確方法
我想設置的iOS 5攝像頭的曝光點(iPhone 4S測試設備):來設置相機的曝光點的iOS
if ([_videoDevice lockForConfiguration:nil])
{
if ([_videoDevice isExposurePointOfInterestSupported])
{
[_videoDevice setExposurePointOfInterest:CGPointMake(0.2,0.2)];
if ([_videoDevice isExposureModeSupported:AVCaptureExposureModeAutoExpose])
{
[_videoDevice setExposureMode:AVCaptureExposureModeAutoExpose];
NSLog(@"Adjusting exposure: %d", [_videoDevice isAdjustingExposure]);
}
}
[_videoDevice unlockForConfiguration];
}
根據文檔「AVCaptureExposureModeAutoExpose」應設置曝光和然後鎖定。我的問題是「isAdjustingExposure」總是返回false。我甚至試圖設置一些睡眠,但它仍然處於錯誤狀態。
如何正確設置曝光點?
問候,