1 | initial version |
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;
}
}
2 | No.2 Revision |
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;
}
}