Saturday, 12 April 2014

camera webcam open cv

berikut ini program untuk test camera webcam menggunakan library opencv....selamat mencoba

------------------------------------------------------------------------------------------------------------
#include <cv.h>
#include <highgui.h>
#include <cxcore.h>

using namespace std;
using namespace cv;

int main() {
  CvCapture *capturee = 0;
  IplImage *frame = 0;
  int key = 0;
  capturee = cvCaptureFromCAM(0);
  if (!capturee) {
    cout << "Capture Error !!\n";
    return 1;
  }
  cvNamedWindow("Tes Camera OpenCV", CV_WINDOW_AUTOSIZE);
  while(key != 27) {
    frame = cvQueryFrame(capturee);
    if (!frame) break;
    cvShowImage("Tes Camera OpenCV", frame);
    key = cvWaitKey(1);
  }
  cvDestroyWindow("Tes Camera OpenCV");
  cvReleaseCapture(&capturee);
  return 0;
 }
------------------------------------------------------------------------------------------------------------
hasil

7 comments:

  1. thanks for this usefull article, waiting for this article like this again. adult live webcams

    ReplyDelete
  2. Nice to read your article! I am looking forward to sharing your adventures and experiences. couplecam.co.uk

    ReplyDelete
  3. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. vr cam shows

    ReplyDelete
  4. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. vr cams

    ReplyDelete
  5. i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future.. cam shows

    ReplyDelete
  6. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. adult cam

    ReplyDelete