当前位置: 首页>>代码示例>>C++>>正文


C++ VideoTrack::init_frames方法代码示例

本文整理汇总了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;
}
开发者ID:farzonl,项目名称:ComputerVisonClassProjects,代码行数:66,代码来源:main.cpp


注:本文中的VideoTrack::init_frames方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。