#include "opencv2/core.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/cudabgsegm.hpp"
+#include "opencv2/cudalegacy.hpp"
#include "opencv2/video.hpp"
#include "opencv2/highgui.hpp"
int main(int argc, const char** argv)
{
cv::CommandLineParser cmd(argc, argv,
- "{ c camera | | use camera }"
- "{ f file | ../data/768x576.avi | input video file }"
- "{ m method | mog | method (mog, mog2, gmg, fgd) }"
- "{ h help | | print help message }");
+ "{ c camera | | use camera }"
+ "{ f file | ../data/vtest.avi | input video file }"
+ "{ m method | mog | method (mog, mog2, gmg, fgd) }"
+ "{ h help | | print help message }");
if (cmd.has("help") || !cmd.check())
{
if (!bgimg.empty())
imshow("mean background image", bgimg);
- int key = waitKey(30);
+ char key = (char)waitKey(30);
if (key == 27)
break;
}