最終更新:2013-11-21 (木) 18:26:48 (3801d)  

Camera.Parameters.getMaxNumDetectedFaces
Top / Camera.Parameters.getMaxNumDetectedFaces

Returns the maximum number of detected face supported by the camera.

http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getMaxNumDetectedFaces()

/**
 * Gets the maximum number of detected faces supported. This is the
 * maximum length of the list returned from {@link FaceDetectionListener}.
 * If the return value is 0, face detection of the specified type is not
 * supported.
 *
 * @return the maximum number of detected face supported by the camera.
 * @see #startFaceDetection()
 */
public int getMaxNumDetectedFaces() {
    return getInt(KEY_MAX_NUM_DETECTED_FACES_HW, 0);
}

メモ

Nexus 7 (2013)0
GL07S0
ASUS MeMO Pad HD7? ME173-16?15

ネットより

HTC J butterfly HTL21?10
Xperia A? SO-04E?5

関連

  • android.hardware.Camera.FaceDetectionListener?