AVCapturePhotoOutput color differs from preview level

When capturing an image, the color of the output image is different from what I see at the preview level. For some reason, the color changes a little. Has anyone come across this question before? How can i fix this?

The green color is a little darker when I get my image from didFinishProcessingPhotoSampleBuffer enter image description here

+4
source share
1 answer

Reading the official documentation of AVCapturePhotoOutput I found this:

AVCapturePhotoOutput . AVCaptureDevice activeColorSpace, P3_D65, ( AVCapturePhotoSettings , ).

activeColorSpace:

...

, , , . activeColorSpace , .

0

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


All Articles