Introduction - If you have any usage issues, please Google them yourself
The program connects and begins to grip the camera with cvCreateCameraCapture (), then get the width and height frame with cvGetCaptureProperty (). And then in the loop with cvQueryFrame () gets the image from the camera and displays the window.