【问题标题】:What does this line (cap>> frame;) mean in the source code?这行 (cap>> frame;) 在源代码中是什么意思?
【发布时间】:2014-12-24 11:09:27
【问题描述】:

我正在用 C++ 学习 OpenCV 库,并且卡在这行代码“cap >> frame;”中

cv::Mat frame;
while(1)
{
       cap>> frame; // <= What does this line do in the program 
       if(!frame.data)break;
       cv::imshow("Input", frame);
       if(cv::waitKey(33)>= 0) break;
}
return 0;

}

【问题讨论】:

  • cap 可能是一个 istream 运算符,正在获取输入

标签: c++ opencv computer-vision


【解决方案1】:

这行代码从相机获取新帧

cap>> frame;

【讨论】:

    猜你喜欢
    • 2021-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-31
    • 2015-04-30
    相关资源
    最近更新 更多