VideoCapture capture;
Mat frame;
capture.open(videofile.toLocal8Bit().toStdString()); // Read video
if(!capture.isOpened())
{
QMessageBox::information(this,
tr("Prompt"),
tr("1.Video read failed, please check if the video is complete, is it MP4.\n2.(Maybe)Opencv doesn't support the video!"),
QMessageBox::Ok,
QMessageBox::Ok);
return;
}
感谢大佬,请问 加载视频流之后
这里面的capture.isOpened()总是报false ,