本文整理汇总了C++中VideoTrack::init_frames方法的典型用法代码示例。如果您正苦于以下问题:C++ VideoTrack::init_frames方法的具体用法?C++ VideoTrack::init_frames怎么用?C++ VideoTrack::init_frames使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VideoTrack
的用法示例。
在下文中一共展示了VideoTrack::init_frames方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
if(argc != 2)
{
cout << "usage ./exec <video>.avi\n" <<endl;
return -1;
}
cv::VideoCapture capture(argv[1]);
if (!capture.isOpened())
{
std::cout << "ERROR: capture is NULL \n"<<std::endl;
return -1;
}
VideoTrack v;
v.init_frames(capture);
/*
char send_data[1];
cout << "Type 1.1 to run problem set 1.1\n"<<
"1.2 to run problem set 1.2\n"<<
"2.1 to run problem set 2.1\n"<<
"2.2 to run problem set 2.2\n"<<
"3.1 to run problem set 3.1\n"<<
"4.1 to run problem set 4.1\n"<<
"5.1 to run problem set 5.1\n"<<endl;
cin >>send_data;
if ((strcmp(send_data , "1.1") == 0))
{
}
else if ((strcmp(send_data , "1.2") == 0))
{
}
else if ((strcmp(send_data , "2.1") == 0))
{
}
else if ((strcmp(send_data , "2.2") == 0))
{
}
else if ((strcmp(send_data , "3.1") == 0))
{
}
else cout << "I do not recognize that number"<<endl;*/
// wait for a key
//cvWaitKey(0);
return 0;
}