Face.Builder Constructors
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.
Overloads
| Name | Description |
|---|---|
| Face.Builder() |
Creates a builder for a face with no bounds or detection score set. |
| Face.Builder(Face) |
Creates a builder with the values from an existing face. |
Face.Builder()
Creates a builder for a face with no bounds or detection score set.
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=34)]
public Builder();
- Attributes
Remarks
Set the bounds and score before calling Build(). The initial face ID is IdUnsupported, and the eye and mouth positions are unset. This builder supports application testing; normal camera use obtains detected faces from capture results.
Android 16 source for the builder's initial values and build requirements.
Applies to
Face.Builder(Face)
Creates a builder with the values from an existing face.
[Android.Runtime.Register(".ctor", "(Landroid/hardware/camera2/params/Face;)V", "", ApiSince=34)]
public Builder(Android.Hardware.Camera2.Params.Face current);
[<Android.Runtime.Register(".ctor", "(Landroid/hardware/camera2/params/Face;)V", "", ApiSince=34)>]
new Android.Hardware.Camera2.Params.Face.Builder : Android.Hardware.Camera2.Params.Face -> Android.Hardware.Camera2.Params.Face.Builder
Parameters
- current
- Face
The face whose bounds, score, ID, and landmark positions supply the builder's initial values.
- Attributes
Remarks
The builder initially refers to the same bounds and landmark objects as current; it does not clone them. In the linked implementation, the copy constructor does not mark the bounds and score as set, so call SetBounds and SetScore before Build().
Android 16 source for the copy constructor and build checks.