CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Facelytics 2.1.0

Facelytics 2.1.0

TestsTested
LangLanguage Obj-CObjective C
License NOASSERTION
ReleasedLast Release Jun 2021

Maintained by Peter Schaeffer, Bertrand Villain, Team Wassa, Pierrick.



  • By
  • Wassa

Facelytics

Version License Platform

Facelytics is an SDK allowing mobile apps to detect faces and then make gender predictions and age predictions on faces. For more information about Facelytics.

Installation

Cocoapods

CocoaPods is the recommended way to add Facelytics to your project.

  1. Add a pod entry for Facelytics to your Podfile :
pod "Facelytics"
  1. Install the pod(s) by running pod install.

  2. Include Facelytics wherever you need it with #import <Facelytics_SDK/Facelytics_SDK.h> from Objective-C or import Facelytics_SDK from Swift.

Manual installation

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Include Facelytics wherever you need it with #import <Facelytics_SDK/Facelytics_SDK.h> from Objective-C or import Facelytics_SDK from Swift.

Usage

To run the example project just open it and run. The framework is already included. Make sure you also see Facelytics documentation on Cocoadocs. Attention : To use the SDK, you need a License Key you can on the Facelytics website

The sample code is commented and show usage exemples of the SDK.

###Basics

  1. Add the following import to the top of the file or the bringing header for swift:

    import Facelytics_SDK
    
  2. Instantiate a Facelytics object

facelyticsInstance = Facelytics(licenceKey: "your license key", completion: nil)
  1. Load the prediction models in the Facelytics instance
facelyticsInstance?.loadModels(completion: { (error) in
  if let error = error {
    print("❌ Cannot initialize Facelytics \(error.localizedDescription)")
  } else {
    
  }
})
  1. Make face detections from picture
FacelyticsService.shared.facelyticsInstance?.detectFaces(image: sourceGroupImage, completion: { (faces, error) in
  if let faces = faces,
    !faces.isEmpty {
     /// Handle detected faces
  }
})
  1. You can now use gender or age prediction
FacelyticsService.shared.facelyticsInstance?.predictAge(faceToPredict: face.image, completion: { (ageResult, error) in

 /// Handle result

})

Requirements

  • Xcode 11
  • iOS 12

License

Facelytics is available under a commercial license. See the LICENSE file for more info.

Author

Wassa, [email protected]