Skip to content

Instantly share code, notes, and snippets.

@ikarino
Last active August 29, 2015 14:09
Show Gist options
  • Save ikarino/22d806d550460b5a2d4e to your computer and use it in GitHub Desktop.
Save ikarino/22d806d550460b5a2d4e to your computer and use it in GitHub Desktop.
MacbookAirのカメラ
#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