what is conterpart of Mat frame_gray in python?
i tried to convert these opencv code to python,but never worked_(:3 」∠)_
please help
std::vector<Rect> faces;
Mat frame_gray;
cvtColor( frame, frame_gray, CV_BGR2GRAY );
equalizeHist( frame_gray, frame_gray );
face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0, Size(20, 20) );
for( int i = 0; i < faces.size(); i++ )
{
Mat faceROI = frame_gray( faces[i] );
Mat faceOrg = frame( faces[i] );
blur(faceOrg, faceOrg, Size(25,25));
std::vector<Rect> eyes;
}
imshow( window_name, frame );
see Face Detection using Haar Cascades