Skip to content

Commit b181909

Browse files
Eino-Ville TalvalaAndroid (Google) Code Review
authored andcommitted
Merge "Camera: Document face detection confidence recommendations." into jb-mr1-dev
2 parents 39a37c3 + 8df3b2b commit b181909

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

core/java/android/hardware/Camera.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,8 +1332,14 @@ public Face() {
13321332
public Rect rect;
13331333

13341334
/**
1335-
* The confidence level for the detection of the face. The range is 1 to 100. 100 is the
1336-
* highest confidence.
1335+
* <p>The confidence level for the detection of the face. The range is 1 to
1336+
* 100. 100 is the highest confidence.</p>
1337+
*
1338+
* <p>Depending on the device, even very low-confidence faces may be
1339+
* listed, so applications should filter out faces with low confidence,
1340+
* depending on the use case. For a typical point-and-shoot camera
1341+
* application that wishes to display rectangles around detected faces,
1342+
* filtering out faces with confidence less than 50 is recommended.</p>
13371343
*
13381344
* @see #startFaceDetection()
13391345
*/

0 commit comments

Comments
 (0)