Reputation: 1136
I implemented a custom camera with the AVCaptureDevice.Preset.High
preset and I'm using .continuousAutoExposure
. Everything works as expected, however, the brightness of the picture is sometimes quite low.
I have researched the official documentation and found out, that I am able to set a custom ISO with setExposureModeCustomWithDuration
. Unfortunately, doing it this way results in the loss of the wished automation of the exposure.
My question now is, is there a way to increase the overall brightness Percentage of the .continuousAutoExposure
Mode? I need it to increase the exposure to around 5% only, but I also need to stick with the .continuousAutoExposure
mode.
Upvotes: 3
Views: 1241
Reputation: 1502
The trick is to set exposureTargetOffset
property of the AVCaptureDevice
instance. You need to use KVO to observe changes in the value of captureDevice.exposureTargetOffset
and change it to your required exposure level. For more details, check this answer.
Upvotes: 3