FacepickerController
is a an open-source UIViewcontroller
subclass build to allow user to crop image, specifically cropping is based on human face. Core Image's
face detection feature used to detect faces. FacepickerController
is easy to install and use.
- Detect face from
UIImage
- Crop image by dragging and zooming
- Used delegate pattern
- Written in swift
let facepickerController = FacepickerController()
facepickerController.datasource = self
facepickerController.delegate = self
facepickerController.style = .dark
self.present(facepickerController, animated: true, completion: nil)
func imageForFaceDetectionIn(facepickerController: FacepickerController) -> UIImage {
return self.image
}