作者:
hope2801 (sexydick)
2018-05-15 13:08:12開發平台(Platform): (Ex: Win10, Linux, ...)
Win10
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
visual studio c++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
opencv
問題(Question):
影片播到5秒時,就發生未處理的例外狀況
餵入的資料(Input):
一段mp4檔的影片約6秒多
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
https://i.imgur.com/SpeZpJ3.jpg
https://i.imgur.com/ki7gDbM.jpg
https://i.imgur.com/2NVf0Nk.jpg
程式碼(Code):(請善用置底文網頁, 記得排版,禁止使用圖檔)
#include "stdafx.h"
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv) {
VideoCapture capture("27742.t.MP4");
while (1)
{
Mat frame;
capture >> frame;
imshow("cam", frame);
waitKey(30);
}
return 0;
}
補充說明(Supplement):
我想要解決那個例外狀況
在網路上有看到有人有類似問題,可是他的解決方法是重新下載,但是我的open cv最近
才剛重新下載,不知道該不該再重載一次。