Increase brightness for .continuousAutoExposure Mode

Hello StackOverflow Community. I have implemented a custom camera with AVCaptureDevice.Preset.High preset and I am using .continuousAutoExposure. Everything works as expected, but the image brightness is sometimes quite low.

I studied the official documentation and found out that I can set a custom ISO using setExposureModeCustomWithDuration. Unfortunately, this leads to the loss of the desired automation of the impact.

Now my question is: is there a way to increase the overall brightness. Percent. continuous battery life? I need to increase exposure by up to 5%, but I also need to stick with .continuousAutoExposure mode.

Thank you very much for your attention. Any help is appreciated.

+4
source share
2 answers

The trick is to set the exposureTargetOffsetinstance property AVCaptureDevice. You must use KVO to observe changes in value captureDevice.exposureTargetOffsetand change it to the desired level of exposure. See more details.

+2
source
0
source

Source: https://habr.com/ru/post/1693881/


All Articles