level 1
s15534656510
楼主
#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;
waitKey(30);
imshow("调用摄像头", frame);
waitKey(30);
}
return 0;
}
望解决!!!!!!!!!!!!!!!
2017年03月19日 02点03分
1
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
using namespace cv;
int main()
{
VideoCapture cap(0);
Mat frame;
while (1)
{
cap >> frame;
waitKey(30);
imshow("调用摄像头", frame);
waitKey(30);
}
return 0;
}
望解决!!!!!!!!!!!!!!!
