CloseupFacePicker UIViewController-Based Face Detection and Cropping

FacepickerController is an open-source UIViewcontroller subclass designed to allow users to crop images, especially those based on facial detection. The face detection feature is powered by Core Image, making it easy to detect faces within an image. FacepickerController is simple to install and use.

Features:

  • Detects faces from UIImage
  • Allows users to crop images by dragging and zooming
  • Follows the delegate pattern
  • Written in Swift

Installation:

Manual Installation Steps:

  1. Add FacepickerController to your project.
  2. Drag and drop the exchange.imageset into your Assets.xcassets folder.

Example Usage:

  1. Initialize the FacepickerController.
  2. Set the dataSource.
  3. Define the delegate.
  4. (Optional) Set the style.
  5. Present the FacepickerController:
let facepickerController = FacepickerController()
zip 文件大小:4.67MB