Last active
August 29, 2015 14:09
-
-
Save ikarino/22d806d550460b5a2d4e to your computer and use it in GitHub Desktop.
MacbookAirのカメラ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/core/core.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
int main(int argc, char** argv) { | |
cv::VideoCapture cap(1); | |
cv::namedWindow("window", 1); | |
while(true) { | |
cv::Mat frame; | |
cap >> frame; | |
cv::imshow("window", frame); | |
cv::waitKey(10); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment