如果不会配置OpenCV那就尴尬了~
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
using namespace cv;
int main()
{
VideoCapture cap(0);
Mat frame;
while (1)
{
cap >> frame;
imshow("调用摄像头", frame);
waitKey(30);
}
return 0;
}
powered by:小乌龟在大乌龟背上~
更多文章:http://blog.csdn.net/what951006?viewmode=list