Take photos in portrait mode (bokeh) in iOS 11 / iPhone 7 / 8plus in a third-party application?

The iPhone 7 plus and 8 plus (and X) affect the camera’s own application, called “Portrait Mode,” which mimics the bokeh effect, using depth data to blur the background.

I want to add the ability to take pictures with this effect in my own application.

I see that depth data is available in iOS 11. But I do not know how to use this to achieve the effect.

I’m missing something - is it possible to turn on this effect and just get an image with it, instead of trying this complex algorithm myself?

amuses

+4
source share
1 answer

, iOS 11, . iPhone WWDC , .

, , AVFoundation. , ! AVCam , , ( , ).

+2

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


All Articles