Face Wish

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


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

  • Class: EnxFaceAI
  • Method: public void enableFaceWish(boolean enable)


  • enable : Boolean. Set it to true to enable or start analysis of face wish. Otherwise, set it to false.

Callback Method

  • onFaceWishData : 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

enxFaceAI.enableFaceWish(true); // To start analysis
enxFaceAI.enableFaceWish(false);// To stop analysis
// Callback
public void onFaceWishData(String type, String value) {