c++
1cv::VideoCapture movie("videos/janken.mp4"); 2 if(!movie.isOpened()){ 3 cout << "Movie not found!" << endl; 4 return -1; 5 }
上記のコードを
g++ $(pkg-config --cflags --libs opencv) test.cpp -o Test
でコンパイルして生成されたTestファイルを開くと
OpenCV: Couldn't read video stream from file "videos/janken.mp4"
Movie not found!
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[プロセスが完了しました]
と表示されます。動画ファイルを開けない原因はなんでしょうか?プログラミング初心者でわからないのでご教授願いたいです。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/29 11:20