HomeSort by relevance Sort by last modified time
    Searched refs:faces (Results 1 - 25 of 151) sorted by null

1 2 3 4 5 6 7

  /external/opencv3/samples/cpp/tutorial_code/objectDetection/
objectDetection.cpp 56 std::vector<Rect> faces; local
62 //-- Detect faces
63 face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0|CASCADE_SCALE_IMAGE, Size(30, 30) );
65 for ( size_t i = 0; i < faces.size(); i++ )
67 Point center( faces[i].x + faces[i].width/2, faces[i].y + faces[i].height/2 );
68 ellipse( frame, center, Size( faces[i].width/2, faces[i].height/2 ), 0, 0, 360, Scalar( 255, 0, 255 ), 4, 8, 0 )
    [all...]
objectDetection2.cpp 65 std::vector<Rect> faces; local
71 //-- Detect faces
72 face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0, Size(80, 80) );
74 for( size_t i = 0; i < faces.size(); i++ )
76 Mat faceROI = frame_gray( faces[i] );
84 Point center( faces[i].x + faces[i].width/2, faces[i].y + faces[i].height/2 );
85 ellipse( frame, center, Size( faces[i].width/2, faces[i].height/2 ), 0, 0, 360, Scalar( 255, 0, 0 ), 2, 8, 0 )
    [all...]
  /hardware/ti/omap4xxx/camera/OMXCameraAdapter/
OMXFD.cpp 199 camera_frame_metadata_t *faces; local
260 CAMHAL_LOGVB("Faces detected %d",
278 ret = encodeFaceCoordinates(faceData, &faces, previewWidth, previewHeight);
281 result = new CameraFDResult(faces);
298 camera_face_t *faces; local
324 faces = ( camera_face_t * ) malloc(sizeof(camera_face_t)*faceData->ulFaceCount);
325 if ( NULL == faces ) {
382 //For real faces, it is seen that the h/w passes a score >=80
383 //For false faces, we seem to get even a score of 70 sometimes.
401 faces[i].rect[trans_left] = tmp
    [all...]
  /external/opencv3/modules/objdetect/perf/opencl/
perf_cascades.cpp 40 vector<Rect> faces; local
49 faces.clear();
53 cc.detectMultiScale(uimg, faces, 1.1, 3, 0, minSize);
57 sort(faces.begin(), faces.end(), comparators::RectLess());
58 SANITY_CHECK(faces, min_size/5);
  /cts/apps/CameraITS/tests/scene2/
test_faces.py 43 faces = md['android.statistics.faces']
45 # 0 faces should be returned for OFF mode
47 assert(len(faces) == 0)
52 if len(faces) == 0:
55 if len(faces) == 0:
59 print " Faces:", faces
62 face_scores = [face['score'] for face in faces]
63 face_rectangles = [face['bounds'] for face in faces]
    [all...]
  /external/deqp/framework/common/
tcuTexVerifierUtil.cpp 61 void getPossibleCubeFaces (const Vec3& coord, const IVec3& bits, CubeFace* faces, int& numFaces)
77 if (x >= ex) faces[numFaces++] = CUBEFACE_POSITIVE_X;
78 if (x <= ex) faces[numFaces++] = CUBEFACE_NEGATIVE_X;
82 if (y >= ey) faces[numFaces++] = CUBEFACE_POSITIVE_Y;
83 if (y <= ey) faces[numFaces++] = CUBEFACE_NEGATIVE_Y;
87 if (z >= ez) faces[numFaces++] = CUBEFACE_POSITIVE_Z;
88 if (z <= ez) faces[numFaces++] = CUBEFACE_NEGATIVE_Z;
92 // One or more components are equal (or within error bounds). Allow all faces where major axis is not zero.
95 faces[numFaces++] = CUBEFACE_NEGATIVE_X;
96 faces[numFaces++] = CUBEFACE_POSITIVE_X
    [all...]
  /external/opencv3/samples/android/face-detection/src/org/opencv/samples/facedetect/
DetectionBasedTracker.java 24 public void detect(Mat imageGray, MatOfRect faces) {
25 nativeDetect(mNativeObj, imageGray.getNativeObjAddr(), faces.getNativeObjAddr());
40 private static native void nativeDetect(long thiz, long inputImage, long faces);
  /hardware/ti/omap4-aah/camera/OMXCameraAdapter/
OMXFD.cpp 244 CAMHAL_LOGVB("Faces detected %d",
307 camera_face_t *faces; local
320 if ( (0 < metadataResult->number_of_faces) && (NULL != metadataResult->faces) ) {
321 free(metadataResult->faces);
323 metadataResult->faces = NULL;
330 faces = ( camera_face_t * ) malloc(sizeof(camera_face_t)*faceData->ulFaceCount);
331 if ( NULL == faces ) {
389 //For real faces, it is seen that the h/w passes a score >=80
390 //For false faces, we seem to get even a score of 70 sometimes.
408 faces[i].rect[trans_left] = tmp
    [all...]
  /external/opencv3/samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/
main.cpp 41 //#define FACES
88 #elif defined FACES
127 // detect human faces
130 Mat faces; local
132 cvtColor(frame, faces, COLOR_RGB2GRAY);
133 equalizeHist(faces, faces);
134 face_cascade.detectMultiScale(faces, facesColl, 1.1, 2, 0 | CV_HAAR_SCALE_IMAGE, cv::Size(1, 1));
  /frameworks/base/media/java/android/media/
FaceDetector.java 26 * Identifies the faces of people in a
103 * be analysed and the maximum number of faces that can be detected.
109 * @param maxFaces the maximum number of faces to identify
125 * Finds all the faces found in a given {@link android.graphics.Bitmap}.
130 * @param faces an array in which to place all found
133 * @return the number of faces found
139 public int findFaces(Bitmap bitmap, Face[] faces)
148 if (faces.length < mMaxFaces) {
150 "faces[] smaller than maxFaces");
157 if (faces[i] == null
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
FaceClustering.java 50 Face[] faces = item.getFaces(); local
51 if (faces != null) {
52 Face face = faces[faceIndex];
99 Face[] faces = item.getFaces();
100 if (faces == null || faces.length == 0) {
104 for (int j = 0; j < faces.length; j++) {
105 Face face = faces[j];
  /external/opencv3/samples/gpu/
cascadeclassifier.cpp 206 vector<Rect> faces; local
244 cascade_gpu->convert(facesBuf_gpu, faces);
249 cascade_cpu.detectMultiScale(resized_cpu, faces, 1.2,
256 for (size_t i = 0; i < faces.size(); ++i)
258 rectangle(resized_cpu, faces[i], Scalar(255));
267 cout << setw(6) << fixed << fps << " FPS, " << faces.size() << " det";
268 if ((filterRects || findLargestObject) && !faces.empty())
270 for (size_t i = 0; i < faces.size(); ++i)
272 cout << ", [" << setw(4) << faces[i].x
273 << ", " << setw(4) << faces[i].
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/legacy/
LegacyFaceDetectMapper.java 87 public void onFaceDetection(Camera.Face[] faces, Camera camera) {
88 int lengthFaces = faces == null ? 0 : faces.length;
91 mFaces = faces;
95 "onFaceDetection - Ignored some incoming faces since" +
101 Log.v(TAG, "onFaceDetection - read " + lengthFaces + " faces");
114 * will have the latest faces detected as reflected by the camera1 callbacks.</p>
195 * {@code statistics.faces} and {@code statistics.faceDetectMode}.
198 * {@link #mapResultFaces} will have the latest faces as reflected by the camera1 callbacks.</p>
201 * the camera will still run face detection in the background, but no faces will be reporte
211 Camera.Face[] faces, previousFaces; local
    [all...]
  /packages/apps/Camera2/src/com/android/camera/ui/
FaceView.java 51 // to avoid rapid changes in state (eg, flickering between has faces and
52 // not having faces)
86 public void setFaces(Face[] faces) {
88 Log.v(TAG, "Num of faces=" + faces.length);
92 if ((faces.length > 0 && mFaces.length == 0)
93 || (faces.length == 0 && mFaces.length > 0)) {
94 mPendingFaces = faces;
106 mFaces = faces;
  /cts/tests/tests/widget/src/android/widget/cts/
GalleryCtsActivity.java 75 R.drawable.faces,
78 R.drawable.faces,
81 R.drawable.faces,
  /external/opencv3/modules/objdetect/misc/java/test/
CascadeClassifierTest.java 35 MatOfRect faces = new MatOfRect(); local
41 cc.detectMultiScale(greyLena, faces, 1.09, 3, Objdetect.CASCADE_SCALE_IMAGE, new Size(30, 30), new Size());
42 assertEquals(1, faces.total());
  /cts/tests/tests/rscpp/librscpptest/
rs_jni_type.cpp 43 for (int faces = 0; faces <= 1; faces++) {
44 bool useFaces = (faces == 1);
114 for (int faces = 0; faces <= 1; faces++) {
115 bool useFaces = (faces == 1);
  /external/mesa3d/src/mesa/drivers/dri/radeon/
radeon_mipmap_tree.h 48 radeon_mipmap_image faces[6]; member in struct:_radeon_mipmap_level
70 GLuint faces; /** # of faces: 6 for cubemaps, 1 otherwise */ member in struct:_radeon_mipmap_tree
  /external/opencv3/samples/cpp/
facial_features.cpp 59 // Detect faces and facial features
60 vector<Rect_<int> > faces; local
61 detectFaces(image, faces, face_cascade_path);
62 detectFacialFeaures(image, faces, eye_cascade_path, nose_cascade_path, mouth_cascade_path);
126 static void detectFaces(Mat& img, vector<Rect_<int> >& faces, string cascade_path)
131 face_cascade.detectMultiScale(img, faces, 1.15, 3, 0|CASCADE_SCALE_IMAGE, Size(30, 30));
135 static void detectFacialFeaures(Mat& img, const vector<Rect_<int> > faces, string eye_cascade,
138 for(unsigned int i = 0; i < faces.size(); ++i)
141 Rect face = faces[i];
smiledetect.cpp 162 vector<Rect> faces, faces2; local
177 cascade.detectMultiScale( smallImg, faces,
196 faces.push_back(Rect(smallImg.cols - r->x - r->width, r->y, r->width, r->height));
200 for( vector<Rect>::iterator r = faces.begin(); r != faces.end(); r++, i++ )
  /cts/tests/tests/media/src/android/media/cts/
FaceDetectorTest.java 38 intent.putExtra(FaceDetectorStub.IMAGE_ID, R.drawable.faces);
  /packages/apps/DevCamera/src/com/android/devcamera/
CameraInterface.java 123 * @param faces Face coordinates.
133 void frameDataAvailable(NormalizedFace[] faces, float normExposure, float normLensPos, float fps, int iso, int afState, int aeState, int awbState);
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
TypeTest.java 38 for (int faces = 0; faces <= 1; faces++) {
39 boolean useFaces = (faces == 1);
86 for (int faces = 0; faces <= 1; faces++) {
87 boolean useFaces = faces == 1;
  /external/deqp/modules/gles2/functional/
es2fFboStateQueryTests.cpp 187 const GLenum faces[] = local
194 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(faces); ++ndx)
195 glTexImage2D(faces[ndx], 0, GL_RGB, 64, 64, 0, GL_RGB, GL_UNSIGNED_BYTE, DE_NULL);
198 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(faces); ++ndx)
200 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, faces[ndx], textureID, 0);
201 checkColorAttachmentParam(m_testCtx, *this, GL_FRAMEBUFFER, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, faces[ndx]);
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
FaceSquareFilter.java 54 .addInputPort("faces", Signature.PORT_REQUIRED, facesType)
66 FrameValues facesFrame = getConnectedInputPort("faces").pullFrame().asFrameValues();
67 Face[] faces = (Face[]) facesFrame.getValues(); local
72 // For every face in faces, draw a white rect around the
74 drawBoxes(pixels, faces, dims);
82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) {
83 for(int i = 0; i < faces.length; i++) {
84 Rect tempRect = faces[i].rect;

Completed in 624 milliseconds

1 2 3 4 5 6 7