Face Features

Analyzes the features of a face in a video stream. The event listener continuously gets the data in a JSON object as FaceAI analyzes the face features.

Method

To start or stop analyzing face features in a video stream.

  • Class: EnxFaceAI
  • Method: -(void)enableFaceFeatures:(BOOL)enable;

Parameter

  • enable : Boolean. Set it to true to enable or start the Face Features analysis. Otherwise set it to false.

Delegate Method

  • FaceAI:didFaceFeaturesData:value : This method is received repeatedly with Face Features Analysis report as a JSON object.

JSON Object: Received with Face Features Analysis data.

{ output: {
features: {
ArchedEyebrows: Number,
Attractive: Number,
....
....
}
}
}

Analysis Data Explanation

  • output: Face Features Report
    • features: Filtered (smoothened) probabilities of each face independent feature in range 0.0 – 1.0. The following features are evaluated:
      • Arched Eyebrows
      • Attractive
      • Bags Under Eyes
      • Bald
      • Bangs
      • Beard 5 O’Clock Shadow
      • Big Lips
      • Big Nose
      • Black Hair
      • Blond Hair
      • Brown Hair
      • Chubby
      • Double Chin
      • Earrings
      • Eyebrows Bushy
      • Eyeglasses
      • Goatee
      • Gray Hair
      • Hat
      • Heavy Makeup
      • High Cheekbones
      • Lipstick
      • Mouth Slightly Open
      • Mustache
      • Narrow Eyes
      • Necklace
      • Necktie
      • No Beard
      • Oval Face
      • Pale Skin
      • Pointy Nose
      • Receding Hairline
      • Rosy Cheeks
      • Sideburns
      • Straight Hair
      • Wavy Hair

Sample Code

// Start Face Features
[FaceAI enableFaceFeatures:true];
- (void)FaceAI:(EnxFaceAI *_Nullable)FaceAI didFaceFeaturesData:(NSString *_Nullable)type value:(NSString *_Nullable)value{
}