Advertisement
Guest User

capture

a guest
Nov 12th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include "/home/cuongle/build_3/install/include/opencv/cv.h"
  2. #include "/home/cuongle/build_3/install/include/opencv/highgui.h"
  3. #include <stdio.h>
  4. // A Simple Camera Capture Framework
  5. int main() {
  6. CvCapture* capture = cvCaptureFromCAM(2);
  7.  
  8. if(!capture)
  9. {
  10. printf("no camera\n");
  11. return -1;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement