Lines Matching refs:Face
27 import android.hardware.camera2.params.Face;
118 * then possible to convert to a more concrete type such as a metering rectangle or a face.
162 * Convert to a face; the rect is considered to be the bounds, and the weight
165 * <p>If the score is out of range of {@value Face#SCORE_MIN}, {@value Face#SCORE_MAX},
173 * @return a new face with the optional features set
175 public Face toFace(
179 Face.SCORE_MIN,
180 Face.SCORE_MAX,
184 return new Face(rect, score, idSafe, leftEyePosition, rightEyePosition, mouthPosition);
188 * Convert to a face; the rect is considered to be the bounds, and the weight
191 * <p>If the score is out of range of {@value Face#SCORE_MIN}, {@value Face#SCORE_MAX},
196 * @return a new face without the optional features
198 public Face toFace() {
200 Face.SCORE_MIN,
201 Face.SCORE_MAX,
205 return new Face(rect, score);
897 * Convert an api1 face into an active-array based api2 face.
901 * @param face a non-{@code null} api1 face
905 * @return a non-{@code null} api2 face
907 * @throws NullPointerException if the {@code face} was {@code null}
909 public static Face convertFaceFromLegacy(Camera.Face face, Rect activeArray,
911 checkNotNull(face, "face must not be null");
913 Face api2Face;
915 Camera.Area fakeArea = new Camera.Area(face.rect, /*weight*/1);
920 Point leftEye = face.leftEye, rightEye = face.rightEye, mouth = face.mouth;
929 api2Face = faceRect.toFace(face.id, leftEye, rightEye, mouth);