Desktop computers called industrial camera
#include
#include
Using the namespace CV;
Int main ()
{
//read in [1] from the camera video
VideoCapture capture (1);
//[2] cycle shows each frame
While (1)
{
Mat frame;//define a Mat variable, used to store each frame image
Capture> Frame;//read the current frame
Imshow (" read the video, "frame);//display the current frame
WaitKey (30);//delay 30 ms
}
return 0;
}
CodePudding user response: