Face.Score Property

Definition

The confidence level for the detection of the face.

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

Property Value

Attributes

Remarks

The confidence level for the detection of the face.

The range is #SCORE_MIN to #SCORE_MAX. #SCORE_MAX 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 #SCORE_MAX is recommended.

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

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