【发布时间】:2014-09-03 18:53:55
【问题描述】:
我正在尝试从相机捕捉视频,我需要能够将帧拉为 Mat。我以前在 C++ 中的 OpenCV 2.4.9 中做过这个,但是使用最新的 3.0 构建我的程序崩溃了。
Mat frame;
VideoCapture capture;
capture = VideoCapture(0);
if (!capture.isOpened())
{
// Just a check. Program does not enter this
}
m_capture >> m_frame; // Program breaks here
相同的代码在 2.4.9 上运行良好,所以我有点难过。
【问题讨论】: