Face.Builder.SetId(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An unique id per face while the face is visible to the tracker.
[Android.Runtime.Register("setId", "(I)Landroid/hardware/camera2/params/Face$Builder;", "", ApiSince=34)]
public Android.Hardware.Camera2.Params.Face.Builder SetId(int id);
[<Android.Runtime.Register("setId", "(I)Landroid/hardware/camera2/params/Face$Builder;", "", ApiSince=34)>]
member this.SetId : int -> Android.Hardware.Camera2.Params.Face.Builder
Parameters
- id
- Int32
A unique ID per face visible to the tracker.
Returns
This builder.
- 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 Face.IdUnsupported, the leftEyePosition, rightEyePosition, and mouthPosition must all be null. Otherwise, they must either all be null or all be non-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 Face.IdUnsupported.
This value should either be Face.IdUnsupported or otherwise greater than 0.
Android reference for android.hardware.camera2.params.Face.Builder.setId.
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.