Face Recognition, Liveness Detection SDK iOS Demo
This repository contains a demonstration of Recognito's face recognition SDK for iOS. The SDK includes advanced features such as face recognition, liveness detection, and pose estimation. Recognito's face recognition algorithm has been ranked as the Top 1 in the NIST FRVT (Face Recognition Vendor Test).
For more details and documentation, visit https://docs.recognito.vision/.
Recognito Youtube Channel: youtube.com/@Recognito-Ltd
To use the Recognito SDK in your iOS project, follow these steps:
facesdk.framework
into the projectFor trial license, share your Bundle ID.
Add your license to license.txt
file:
https://github.com/Recognito-Vision/Face-SDK-iOS-Demo/blob/6e30f27487ac8eafafe122c7ab918ee6ae9eb0a7/license.txt#L1-L5
Initialize SDK with license. https://github.com/Recognito-Vision/Face-SDK-iOS-Demo/blob/6e30f27487ac8eafafe122c7ab918ee6ae9eb0a7/FaceDemo/ViewController.swift#L37-L50
Initialization status codes:
Code | Status |
---|---|
0 | Activate SDK successfully |
-1 | License Key Error |
-2 | License AppID Error |
-3 | License Expired |
-4 | Activate Error |
-5 | Init SDK Error |
+(int)setActivation:(NSString*)license;
Parameters
license
: A string representing the license key required for activation.+(int)initSDK;
Parameters
+(NSMutableArray*)faceDetection:(UIImage*)image;
Parameters
image
: The UIImage
object representing the image in which faces will be detected.NSMutableArray
containing FaceBox
about the detected faces.@interface FaceBox : NSObject
@property (nonatomic) int x1;
@property (nonatomic) int y1;
@property (nonatomic) int x2;
@property (nonatomic) int y2;
@property (nonatomic) float liveness;
@property (nonatomic) float yaw;
@property (nonatomic) float roll;
@property (nonatomic) float pitch;
@end
+(NSData*)templateExtraction:(UIImage*)image faceBox:(FaceBox*)faceBox;
Parameters
image
: The UIImage
object representing the source image from which the face template will be extracted.faceBox
: The FaceBox
object representing the bounding box around the detected face.NSData
object containing the extracted face template data.
+(float)similarityCalculation:(NSData*)templates1 templates2:(NSData*)templates2;
Parameters
templates1
: An NSData
object representing the first face template.templates2
: An NSData
object representing the second face template.For any questions, issues, or feature requests, please contact our support team.