Face.Id Property

Definition

An unique id per face while the face is visible to the tracker.

public int Id { [Android.Runtime.Register("getId", "()I", "")] get; }
[<get: Android.Runtime.Register("getId", "()I", "")>]
member this.Id : int

Property Value

Attributes

Remarks

An unique id per face while the face is visible to the tracker.

If the face leaves the field-of-view and comes back, it will get a new id.

This is an optional field and may not be supported on all devices. If the id is #ID_UNSUPPORTED then the leftEyePosition, rightEyePosition, and mouthPositions are guaranteed to be null. Otherwise, each of leftEyePosition, rightEyePosition, and mouthPosition may be independently null or not-null. When devices report the value of key CaptureResult#STATISTICS_FACE_DETECT_MODE as CameraMetadata#STATISTICS_FACE_DETECT_MODE_SIMPLE in CaptureResult, the face id of each face is expected to be #ID_UNSUPPORTED.

This value will either be #ID_UNSUPPORTED or otherwise greater than 0.

Java documentation for android.hardware.camera2.params.Face.getId().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also