Recognito
  • About RECOGNITO
  • Face Recognition SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Windows
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Flutter
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • Face Liveness Detection SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Windows
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Flutter
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • ID Document Recognition SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • ID Document Liveness Detection SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • License Option
  • How to implement 1:N identification with RECOGNITO SDK
  • Contact & Support
Powered by GitBook
On this page
  • setActivation
  • initSDK
  • faceDetection
  • templateExtraction
  • similarityCalculation
  1. Face Recognition SDK
  2. Integration Guide
  3. iOS

API Reference

setActivation

+(int)setActivation:(NSString*)license;

Name

setActivation

Description

Activate SDK

Input

  • license (NSString*): The license string

Output

The SDK activation status code.

  • 0: Success

  • Non-zero: Activation failed

initSDK

+(int)initSDK;

Name

initSDK

Description

Initiate SDK

Input

None

Output

The SDK initialization status code.

  • 0: Success

  • -1: License Key Error

  • -2: License AppID Error

  • -3: License Expired

  • -4: Activate Error

  • -5: Initialize SDK Error

faceDetection

+(NSMutableArray*)faceDetection:(UIImage*)image;

Name

faceDetection

Description

Detect Face

Input

  • image (UIImage*): The input image

Output

FaceBox

@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

The liveness score ranges from 0.0 to 1.0 Default Liveness Threshold is 0.7

templateExtraction

+(NSData*)templateExtraction:(UIImage*)image faceBox:(FaceBox*)faceBox;

Name

templateExtraction

Description

Extract face feature

Input

  • image (UIImage*): The input image

Output

A NSData representing the extracted template from the face

similarityCalculation

+(float)similarityCalculation:(NSData*)templates1 templates2:(NSData*)templates2;

Name

similarityCalculation

Description

Calculate similarity between two face features

Input

  • templates1 (NSData*): The first face template

  • templates2 (NSData*): The second face template

Output

A float value representing the similarity score between the two face templates The score ranges from 0.0 to 1.0 Default Threshold is 0.8

PreviousInstallationNextLicensing

Last updated 1 year ago

An array of objects representing the detected faces.

faceBox (*): The bounding box of the detected face

FaceBox
FaceBox