Face Wish

Analyzes face wish in a video atream. The event listener keeps getting the data in a JSON object as FaceAI keeps analyzing the face wish.

Method

To start or stop analyzing Face Wish in a video stream.

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

Parameter

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

Delegate Method

  • FaceAI:didFaceWishData:value : This method is received repeatedly with the Face Wish Analysis report as a JSON object.

JSON Object: Received with Face Wish Analysis data.

{ output: {
wish: Number
}
}

Analysis Data Explanation

  • output : Face Wish Report
    • wish : Filtered value (smoothened) in range [0, 1.0]. A value closer to 0 represents a lower wish, a value closer to 1.0 represents a higher wish.

Sample Code

// Start Face Wish
[FaceAI enableFaceWish:true];
- (void)FaceAI:(EnxFaceAI *_Nullable)FaceAI didFaceWishData:(NSString *_Nullable)type value:(NSString *_Nullable)value{
}