The-PaddleX-QT-Visualize-GUI icon indicating copy to clipboard operation
The-PaddleX-QT-Visualize-GUI copied to clipboard

关于qt_gui无法打开视频的问题

Open XxsSss opened this issue 2 years ago • 0 comments

感谢大佬,请问 加载视频流之后

VideoCapture capture; Mat frame; capture.open(video_file_.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 ,

XxsSss avatar Jul 29 '22 02:07 XxsSss