OnFaceInfo
Reports the face information processed by the voice driver extension.
public virtual bool OnFaceInfo(string outFaceInfo)
{
return true;
}
Parameters
- outFaceInfo
- Output parameter. A JSON string of face information processed by the voice driver extension, containing the following fields:
- faces: Array of objects. Contains detected face information, each face corresponds to one object.
- blendshapes: Object. A set of blend shape coefficients named according to the ARKit standard. The internal key-value pairs represent each blend shape coefficient. The coefficient is a float in the range [0.0, 1.0].
- rotation: Array of objects. Head rotation values, including the following key-value pairs with float values in the range [-180.0, 180.0]:
- pitch: Head pitch angle. Positive when looking down, negative when looking up.
- yaw: Head yaw angle. Positive when turning left, negative when turning right.
- roll: Head roll angle. Positive when tilting right, negative when tilting left.
- timestamp: String. Timestamp of the output result in milliseconds.
Return Values
- true: Successfully parsed the face info JSON.
- false: Failed to parse the face info JSON.