I am using AVCaptureDevice.ExposureMode.locked and setWhiteBalanceModeLocked for capturing photos. On the live view/ camera view it is showing properly i.e exposure on face does not change with the background light. But when using capture image it shows blackish image in didFinishProcessing.
End goal is to capture image whose exposure or brightness does not change with the colour of clothes or background light.
Code used for reference: AVCamManual