| :
include "stdafx.h" #include "opencv2/opencv.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" using namespace cv; int main() { VideoCapture cap(0); if (!cap.isOpened()) { return -1; } double fps = cap.get(CV_CAP_PROP_FPS); double width = cap.get(CV_CAP_PROP_FRAME_WIDTH); double height = cap.get(CV_CAP_PROP_FRAME_HEIGHT); printf("fps = %f, width = %f, height = %f ", fps, width, height); Mat frame; namedWindow("camera", CV_WINDOW_AUTOSIZE); while (1) { cap >> frame; imshow("camera", frame); if (waitKey(1000 / fps) == 27) { break; } } return 0; }
ǸҳܰȨ۳ʱ踶ѹ
˴
ɨ븶Ѽɸ
小区标识 | 华为gsm网管 | Iups | 单站 | SIP cancel | Period Report | LTE无线网络优化 | 掉话 | BWPID | NR系统 | 强度 | 容器 |