Face Features

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

Method

To analyze the features of a face in a video stream.

Method: EnxFaceAI.startFaceFeatures(callback)

Parameter

  • callback : Callback to know that processing request has been accepted.

Event Listener

  • face-features : This event notification is received repeatedly with the 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.startFaceFeatures((res) => {
if (res.result === 0) {
window.addEventListener("face-features", (evt) =>
console.log(evt.detail, "face-features");
});
}
});