windows – Using a webcam from C ++


I want to write an application that works with a web camera. Interested in what are the ways to work with her? The OS will be windows XP, windows Vista and windowws 7. Can I write to a file, etc.? Are there any ties to webcam manufacturers or device drivers?


I recommend that you familiarize yourself with the OpenCV library , which represents the image processing capabilities. In the examples, you can find work with a webcam (samples / c / facedetect.c – search for faces in an image from a webcam, demonstrating the ability to capture an image from a camera using the HighGUI module). If the camera driver works correctly, then there is no fundamental difference, the webcam appears to be a regular DirectShow device interface. On the Internet you can find a lot of materials with ready-made examples for OpenCV.

Scroll to Top