Lines Matching defs:faces
65 std::vector<Rect> faces;
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 );
89 Point eye_center( faces[i].x + eyes[j].x + eyes[j].width/2, faces[i].y + eyes[j].y + eyes[j].height/2 );