Skip to content

Instantly share code, notes, and snippets.

View murilopontes's full-sized avatar
:octocat:

Murilo Pontes murilopontes

:octocat:
  • Lisboa
  • 22:27 (UTC +01:00)
View GitHub Profile
@nikhil9
nikhil9 / OpencvCam.c
Created November 15, 2012 19:24
Camera Access using Opencv
#include <iostream>
#include <cv.h>
#include <highgui.h>
using namespace std;
char key;
int main()
{
cvNamedWindow("Camera_Output", 1); //Create window
CvCapture* capture = cvCaptureFromCAM(CV_CAP_ANY); //Capture using any camera connected to your system