Home
last modified time | relevance | path

Searched refs:face (Results 1 – 14 of 14) sorted by relevance

/cts/apps/CameraITS/tests/scene2_a/
Dtest_faces.py56 def check_face_landmarks(face): argument
58 l, r = face['bounds']['left'], face['bounds']['right']
59 t, b = face['bounds']['top'], face['bounds']['bottom']
60 l_eye_x, l_eye_y = face['leftEye']['x'], face['leftEye']['y']
61 r_eye_x, r_eye_y = face['rightEye']['x'], face['rightEye']['y']
62 mouth_x, mouth_y = face['mouth']['x'], face['mouth']['y']
150 face_scores = [face['score'] for face in faces]
151 face_rectangles = [face['bounds'] for face in faces]
162 for face in faces:
163 if 'leftEye' in face or 'rightEye' in face:
[all …]
Dtest_num_faces.py48 for rect in [face['bounds'] for face in faces]:
122 face_scores = [face['score'] for face in faces]
126 face_rectangles = [face['bounds'] for face in faces]
/cts/tests/tests/media/src/android/media/cts/
DFaceDetector_FaceTest.java55 Face face = detectedFaces.get(0); in testFaceProperties() local
57 face.getMidPoint(eyesMP); in testFaceProperties()
60 assertTrue(face.confidence() >= goodConfidence); in testFaceProperties()
62 assertEquals(eyesDistance, face.eyesDistance(), tolerance); in testFaceProperties()
67 face.pose(FaceDetector.Face.EULER_X); in testFaceProperties()
68 face.pose(FaceDetector.Face.EULER_Y); in testFaceProperties()
69 face.pose(FaceDetector.Face.EULER_Z); in testFaceProperties()
73 face.pose(ErrorEuler); in testFaceProperties()
DFaceView.java82 for (Face face : detectedFaces) { in onDraw()
84 face.getMidPoint(eyesMP); in onDraw()
87 float eyesDistance = face.eyesDistance() * scale; in onDraw()
/cts/apps/CameraITS/tests/scene2_d/
Dtest_num_faces.py48 for rect in [face['bounds'] for face in faces]:
122 face_scores = [face['score'] for face in faces]
126 face_rectangles = [face['bounds'] for face in faces]
/cts/apps/CameraITS/tests/scene2_b/
Dtest_num_faces.py48 for rect in [face['bounds'] for face in faces]:
122 face_scores = [face['score'] for face in faces]
126 face_rectangles = [face['bounds'] for face in faces]
/cts/apps/CameraITS/tests/scene2_c/
Dtest_num_faces.py48 for rect in [face['bounds'] for face in faces]:
122 face_scores = [face['score'] for face in faces]
126 face_rectangles = [face['bounds'] for face in faces]
/cts/apps/CameraITS/tests/scene2_e/
Dtest_num_faces.py48 for rect in [face['bounds'] for face in faces]:
122 face_scores = [face['score'] for face in faces]
126 face_rectangles = [face['bounds'] for face in faces]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java114 private static Object serializeFace(Face face) in serializeFace() argument
117 faceObj.put("bounds", serializeRect(face.getBounds())); in serializeFace()
118 faceObj.put("score", face.getScore()); in serializeFace()
119 faceObj.put("id", face.getId()); in serializeFace()
120 if (face.getLeftEyePosition() != null) { in serializeFace()
121 faceObj.put("leftEye", serializePoint(face.getLeftEyePosition())); in serializeFace()
123 if (face.getRightEyePosition() != null) { in serializeFace()
124 faceObj.put("rightEye", serializePoint(face.getRightEyePosition())); in serializeFace()
126 if (face.getMouthPosition() != null) { in serializeFace()
127 faceObj.put("mouth", serializePoint(face.getMouthPosition())); in serializeFace()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java289 private static Object serializeFace(Face face) in serializeFace() argument
292 faceObj.put("bounds", serializeRect(face.getBounds())); in serializeFace()
293 faceObj.put("score", face.getScore()); in serializeFace()
294 faceObj.put("id", face.getId()); in serializeFace()
295 faceObj.put("leftEye", serializePoint(face.getLeftEyePosition())); in serializeFace()
296 faceObj.put("rightEye", serializePoint(face.getRightEyePosition())); in serializeFace()
297 faceObj.put("mouth", serializePoint(face.getMouthPosition())); in serializeFace()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java3237 for (Face face: faces) { in testFaceDetectionByCamera()
3238 if (face != null) firstFace = face; in testFaceDetectionByCamera()
3281 Face face = faces[i]; in testFaces() local
3282 Rect rect = face.rect; in testFaces()
3291 assertTrue(face.score >= 1 && face.score <= 100); in testFaces()
3296 assertEquals(-1, face.id); in testFaces()
3297 assertNull(face.leftEye); in testFaces()
3298 assertNull(face.rightEye); in testFaces()
3299 assertNull(face.mouth); in testFaces()
3301 assertTrue(face.id != -1); in testFaces()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DLaunchClip.java44 void setup(boolean makeIn, boolean makeOut, int x, int y, int z, boolean face, boolean lods, in setup() argument
50 mHasFaces = face; in setup()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java2188 for (Face face : faces) {
2189 mCollector.expectNotNull("Face rectangle shouldn't be null", face.getBounds());
2190 faceScores.add(face.getScore());
2192 face.getId() == Face.ID_UNSUPPORTED);
2199 for (Face face : faces) {
2202 + "shouldn't be null", face.getBounds() != null);
2206 faceBound = face.getBounds();
2208 faceScores.add(face.getScore());
2209 faceIds.add(face.getId());
2212 face.getId() != Face.ID_UNSUPPORTED);
[all …]
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferGLTest.cpp1542 for (int face = 0; face < 6; ++face) { in SetUpTexture() local
1546 glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, level, internal_format, in SetUpTexture()
2259 for (int face = 0; face < 6; ++face) { in TEST_P() local
2261 SetUpFramebuffer(desc.width, desc.height, desc.layers - 6 + face, kBufferAsTexture)); in TEST_P()
2276 for (int face = 0; face < 6; ++face) { in TEST_P() local
2278 SetUpFramebuffer(1, 1, desc.layers - 6 + face, kBufferAsTexture, kNone, kNone, kNone, in TEST_P()