The Expression Measurement API is being sunset.
The facial expression model measures 48 dimensions of emotional expression from facial movements in images and video.
It detects subtle expressions often associated with emotions like admiration, awe, empathic pain, and more.
Recommended input filetypes: .png, .jpeg, .mp4.
You can optionally enable two additional outputs alongside emotion scores: FACS 2.0 action units and facial descriptions. The facemesh model can also be run alongside facial expression to capture detailed face geometry.
The face model is configurable in both Batch API and Streaming API jobs.
Each prediction includes:
x, y, w, h coordinates of the detected faceidentify_faces is enabledfacs is enableddescriptions is enabledWhen identify_faces is enabled, each group’s id is replaced with a unique face identifier that persists across
frames, allowing you to track the same individual throughout a video.
The facial expression model measures the following 48 expressions. Each score indicates the degree to which a human rater would identify that expression in the given sample.
The Facial Action Coding System (FACS) measures individual facial muscle movements called action units. When facs is
enabled, predictions include intensity scores for each of the following action units.
When descriptions is enabled, predictions include scores for high-level facial descriptions. These provide an
intuitive, human-readable summary of the face’s appearance.
The facemesh model detects 468 facial landmark points, providing detailed face geometry data. This is useful for applications that need precise face shape analysis beyond emotional expression.
Facemesh has no configurable parameters. Enable it alongside the face model by passing an empty object:
Each facemesh prediction includes an array of 478 3D facial landmark coordinates for each detected face.