#include types.h
int main() {
VideoCapture camera;
if (!camera.open(0)) {
printf(Cant find a camera
);
return 1;
};
// Main loop
Mat img;
for(;;) {
camera >> img;
imshow(Camera, img);
int key = waitKey(5);
if (key == 27 || key == q) break;
}
camera.release();
return 0;
}
Reviews
There are no reviews yet.