Ask Your Question

Revision history [back]

maybe like this

Mat frameReference;
double lengthAD = captRefrnc.get(CV_CAP_PROP_FRAME_COUNT);
int partBegin = 0.1*length;
captRefrnc.set(CV_CAP_PROP_POS_FRAMES,partBegin );
while(1){
    captRefrnc >> frameReference;
    partBegin++;

    if (partBegin > 0.9*length){
         break;
    }
    if (frameReference.empty()){
        cout << " <<< AD sequence ended!  >>> " << sourceReference <<endl;
        break;
    }