Selfies can be captured two different ways - automatically or manually. The automatic way is to let the SDK capture the selfie when a user smiles. The manual way is to add a button to the ui, and when the button is clicked, force the SDK to use the selfie from the next captured frame. The Smart Selfie capture instructions below must be followed for both. To optionally implement the manual capture, follow the Manual capture instructions.
Smart Selfie capture instructions :
In the storyboard for the ViewController class that will capture the selfie, add a VideoPreviewView. VideoPreviewView is a custom view class that is defined in the Smile Identity SDK. It will be used to capture the selfie. To add the VideoPreviewView in the storyboard do the following steps: