I'm developing a photo capture app, and want when the light is low to auto set exposure duration auto down, so I search the API AVCaptureExposureMode, and API said when exposureMode set to AVCaptureExposureModeAutoExposure
or AVCaptureExposureModeContinuousAutoExposure
the device will automatically adjusts the exposure levels. But when I move iPad(Apple/iPad Pro 10.5-inch iOS(12.1.1)
) light to dark, there just change iso
not change exposure duration
.
Sorry for my English... : (
Here is I tried:
- set
sessionPreset
toAVCaptureSessionPresetPhoto
- invoke
setExposurePointOfInterest
beforesetExposureMode
- my iPad is not support
lowLightBoost
- set
device.activeMaxExposureDuration
todevice.activeFormat.maxExposureDuration
if (![device lockForConfiguration:&error]) {
if (error) {
// on error
}
return;
}
if([device isExposureModeSupported:AVCaptureExposureModeContinuousAutoExposure]){
[device setExposureMode: AVCaptureExposureModeContinuousAutoExposure];
}
[device unlockForConfiguration];
I expect when I move iPad light to dark, the exposure duration
and iso
will both auto adjusting.