cjh3020889729 / The-PaddleX-QT-Visualize-GUI

The-PaddleX-QT-Visualize-GUI
Apache License 2.0
38 stars 15 forks source link

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

Open XxsSss opened 2 years ago

XxsSss commented 2 years ago

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

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 ,