任何人都知道可能有什么问题:
cvSmooth(origImage, grayImage1, CV_BLUR,3);Run Code Online (Sandbox Code Playgroud)
我收到错误:
error: cannot convert `cv::Mat' to `const CvArr*' for argument `1' to `void
cvSmooth(const CvArr*, CvArr*, int, int, int, double, double)'Run Code Online (Sandbox Code Playgroud)
如果我使用:
cvtColor(origImage, grayImage, CV_BGR2GRAY);Run Code Online (Sandbox Code Playgroud)
一切正常.捕获来自笔记本电脑相机(实时).