Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <opencv2\opencv.hpp>;
- #include <opencv2\imgcodecs.hpp>;
- using namespace cv;
- int _tmain(int argc, _TCHAR* argv[])
- {
- Mat img;
- VideoCapture cam(0);
- namedWindow("camera");
- while (1)
- {
- cam >> img;
- imshow("camera", img);
- if (waitKey(1) == 27)
- break;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment