summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-09-17 08:37:44 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-17 08:37:44 -0700
commitb181909eefeb8c9b675b1ca25768dcddde9ea0b8 (patch)
tree4ed9d1b0055044819ee08bc1cf5f0fc530a8e714 /core
parent39a37c3bb3d21c119cca536f85c298db805f86cd (diff)
parent8df3b2b3989df44953153603681e03140fd853d6 (diff)
downloadframeworks_base-b181909eefeb8c9b675b1ca25768dcddde9ea0b8.zip
frameworks_base-b181909eefeb8c9b675b1ca25768dcddde9ea0b8.tar.gz
frameworks_base-b181909eefeb8c9b675b1ca25768dcddde9ea0b8.tar.bz2
Merge "Camera: Document face detection confidence recommendations." into jb-mr1-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/hardware/Camera.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java
index bc10e03..7b3a8af 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.
+ * <p>The confidence level for the detection of the face. The range is 1 to
+ * 100. 100 is the highest confidence.</p>
+ *
+ * <p>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.</p>
*
* @see #startFaceDetection()
*/