How to use a webcam in C++?

How would I use a webcam in C++?
Concepts? Steps? Different methods?
I understand that this question may be too broad to answer but I don't have anything to start with. Just looking for somewhere to start that will take me in the direction of using a webcam with C++. I would like to know how to program it myself but if the only way you know how is with some library then please mention it. Any useful information is appreciated.
I believe OpenCV can help you with that. I don't really know any others, though I'm sure there are better options..
Also, there might be some api written specifically for the cam you have by whoever made it.

Note that things aren't really doable without using libraries at all. It is possible to talk to a webcam without a library for that, you'd still be using OS functions.
Last edited on
Topic archived. No new replies allowed.