From 8df3b2b3989df44953153603681e03140fd853d6 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Sat, 15 Sep 2012 14:30:12 -0700 Subject: [PATCH] Camera: Document face detection confidence recommendations. Bug: 7108023 Change-Id: I9de583254d127f9c1f702b7ed159a7080bcbfd25 --- core/java/android/hardware/Camera.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java index bc10e036cd503..7b3a8af3eb612 100644 --- a/core/java/android/hardware/Camera.java +++ b/core/java/android/hardware/Camera.java @@ -1332,8 +1332,14 @@ public class Camera { public Rect rect; /** - * The confidence level for the detection of the face. The range is 1 to 100. 100 is the - * highest confidence. + *

The confidence level for the detection of the face. The range is 1 to + * 100. 100 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 50 is recommended.

* * @see #startFaceDetection() */