Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

we need to clone our frame otherwise it will point to same frame

     for( ; ; )
     {    
        capture >> frame;
        if(frame.empty())
            break;

        Mat tmp=frame.clone();
        obj.hsv_histogram(tmp);
        videoframes.push_back(tmp);
       }