Lines Matching defs:faces
56 std::vector<Rect> faces;
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 );
70 Mat faceROI = frame_gray( faces[i] );
78 Point eye_center( faces[i].x + eyes[j].x + eyes[j].width/2, faces[i].y + eyes[j].y + eyes[j].height/2 );