Dil

Face.Builder.SetScore(Int32) Method

Definition

The confidence level for the detection of the face.

[Android.Runtime.Register("setScore", "(I)Landroid/hardware/camera2/params/Face$Builder;", "", ApiSince=34)]
public Android.Hardware.Camera2.Params.Face.Builder SetScore(int score);
[<Android.Runtime.Register("setScore", "(I)Landroid/hardware/camera2/params/Face$Builder;", "", ApiSince=34)>]
member this.SetScore : int -> Android.Hardware.Camera2.Params.Face.Builder

Parameters

score
Int32

Confidence level between Face.ScoreMin-Face.ScoreMax. Value is between Face.ScoreMin and Face.ScoreMax inclusive

Returns

This builder. This value cannot be null.

Attributes

Remarks

The confidence level for the detection of the face.

The range is Face.ScoreMin to Face.ScoreMax. Face.ScoreMax is the highest confidence.

Depending on the device, even very low-confidence faces may be listed, so applications should filter out faces with low confidence, depending on the use case. For a typical point-and-shoot camera application that wishes to display rectangles around detected faces, filtering out faces with confidence less than half of Face.ScoreMax is recommended.

Android reference for android.hardware.camera2.params.Face.Builder.setScore.

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