Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what is conterpart of Mat frame_gray in python?

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 );

Iim tried to convert these opencv code to python,but never worked_(:3 」∠)_
please help

what is conterpart of Mat frame_gray in python?

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 );

Iim i tried to convert these opencv code to python,but never worked_(:3 」∠)_
please help help

what is conterpart of Mat frame_gray in python?

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 );

i tried to convert these opencv code to python,but never worked_(:3 」∠)_
please help

what is conterpart of Mat frame_gray in python?

std::vector<rect> faces; 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> std::vector<Rect> eyes; } imshow( window_name, frame );

i tried to convert these opencv code to python,but never worked_(:3 」∠)_
please help

);

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 );