#include <opencv2/opencv>
#include <iostream>
using namespace std;
using namespace cv;
int main()
{
VideoCapture camera(0)
if(!camera.isOpened())
{
std::cout<<"The camera is not turned on!!!"<<std::endl;
return 1;
}
while (true)
{
Mat frame;
camera >> frame;
if(frame.empty())
break
else
{
imshow("test",frame);
}
return 0;
}