This code example shows you, how you can detect faces on an image by using the API of Apples Vision Framework. For more information about Vision see https://developer.apple.com/documentation/vision
The detection works with single and multiple faces in the image.
- Xcode 9
- Swift 4
- iOS 11