Lines Matching refs:Face
27 import android.hardware.camera2.params.Face;
43 * Map legacy face detect callbacks into face detection results.
51 /** Is the camera capable of face detection? */
53 /** Is the camera is running face detection? */
57 /** Did the last request enable the face detect mode to ON? */
62 private Camera.Face[] mFaces;
63 private Camera.Face[] mFacesPrev;
65 * Instantiate a new face detect mapper.
88 public void onFaceDetection(Camera.Face[] faces, Camera camera) {
97 "face detection was disabled");
109 * Process the face detect mode from the capture request into an api1 face detect toggle.
135 "face detection is not available");
146 "face detection is not available");
169 // Enable/disable face detection if it's changed since last time
175 Log.v(TAG, "processFaceDetectMode - start face detection");
181 Log.v(TAG, "processFaceDetectMode - stop face detection");
198 * <p>Face detect callbacks are processed in the background, and each call to
201 * <p>If the scene mode was set to {@code FACE_PRIORITY} but face detection is disabled,
202 * the camera will still run face detection in the background, but no faces will be reported
212 Camera.Face[] faces, previousFaces;
240 List<Face> convertedFaces = new ArrayList<>();
242 for (Camera.Face face : faces) {
243 if (face != null) {
245 ParameterUtils.convertFaceFromLegacy(face, activeArray, zoomData));
247 Log.w(TAG, "mapResultFaces - read NULL face from camera1 device");
256 result.set(CaptureResult.STATISTICS_FACES, convertedFaces.toArray(new Face[0]));