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:
public void enableFaceFeatures(boolean enable)
Parameter
enable
: Boolean. Set it to true to enable or start the analysis of face features. Otherwise, set it to false.
Callback Method
onFaceFeatureData
: This method 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 Reportfeatures
: 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
enxFaceAI.enableFaceFeatures(true); // To start analysisenxFaceAI.enableFaceFeatures(false); // To stop analysis// Callback@Overridepublic void onFaceFeatureData(String type, String value) {}