3,880
社区成员




int main(int argc, char** argv)
{
char files[256];
int i;
for (i=1000;i<1010;i++) {
sprintf(files,"Campus\\trees%04d.bmp",i);
VideoCapture sequence(files);
if (!sequence.isOpened())
{
cerr << "Failed to open the image sequence" << files << "!\n" << endl;
system("pause");
return 1;
}
Mat image;
namedWindow("Image sequence", 1);
sequence >> image;
if(image.empty())
{
cout << "End of Sequence" << endl;
break;
}
imshow("Image sequence", image);
waitKey(0);
}
}