Ask Your Question

Revision history [back]

just use for :

int partBegin = 0.1*length;
captRefrnc.set(CV_CAP_PROP_POS_FRAMES,partBegin );
for (int i=partBegin;i<length*0.9;i++)
{
    captRefrnc >> frameReference;
    if (frameReference.empty()){
        cout << " <<< AD sequence ended!  >>> " <<endl;
        break;
    }
}

just use for :

int partBegin = 0.1*length;
captRefrnc.set(CV_CAP_PROP_POS_FRAMES,partBegin );
for (int i=partBegin;i<length*0.9;i++)
i=partBegin;i<static_cast<int>(length*0.9);i++)
{
    captRefrnc >> frameReference;
    if (frameReference.empty()){
        cout << " <<< AD sequence ended!  >>> " <<endl;
        break;
    }
}