c++ - How to hook webcam capture? -


I am working on a software that is a custom made device driver of a webcam in the current version, With our software, which changes the capture image before displaying it, it is similar to that of the UK.

Actually, when any application that uses webcams, our drivers run processing in the frame before showing it.

The problem is that "2" webcam is always installed, the actual one and our custom driver.

I have seen that YouCam will need whatever we need, to hook up some method in any installed webcam which will show before each frame is displayed.

Does anyone have to do this?

We use VC ++.

Thanks

As bkritzer said, easily what you want.

  IplImage * image = 0; // OpenCV type cvcp capture * capture = 0; // Create OpenCV Type Capture Capture Capture = CVCaptTRAMAM (0); Emphasize (capture, "webcam can not connect"); // While capturing images (stilCapturing) {// Catch Image cvGrabFrame (capture); // retrieve image image = cvRetrieveFrame (capture); // You can configure at the time of refresh if (image) cvWaitKey (refreshTime); // Get your image here ... ...  

You can cap these OpenCV calls in a C ++ class and dedicate a specific thread for it - These will be your drivers.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -