A Swift library that uses iOS 11 Vision API to automatically detect and crop faces from images.
FaceCropper is a Swift library for iOS that uses Apple's Vision API to automatically detect and crop faces from images. It simplifies the process of extracting faces from UIImage or CGImage objects, handling detection results and errors through a clean result enum. The library is designed to work seamlessly with iOS 11 and later.
iOS developers building apps that require face detection and cropping features, such as photo editing tools, social media apps, or security applications.
Developers choose FaceCropper for its minimal API that reduces Vision framework boilerplate, its native Swift integration, and its straightforward handling of face detection outcomes without needing to manage complex computer vision pipelines.
:scissors: Crop faces, inside of your image, with iOS 11 Vision api.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Adds a .face.crop method directly to UIImage and CGImage, providing an intuitive, type-safe interface for Swift developers, as shown in the README example.
Abstracts Apple's Vision framework setup, reducing complex code for face detection tasks, aligning with its stated philosophy of simplicity.
Uses a typed result enum (.success, .notFound, .failure) to manage edge cases like no faces or errors cleanly, ensuring reliable outcomes.
Available via CocoaPods with a simple pod install, making integration straightforward for iOS projects, as highlighted in the README.
Requires iOS 11 or higher, excluding support for older versions, as specified in the Requirements section, which narrows its usability.
Focuses solely on face cropping without extending to other Vision framework features like text recognition or object tracking, limiting scope.
Mentions Xcode 9 and iOS 11 beta versions in the README, suggesting it may not be actively updated for newer iOS releases, risking compatibility.