I am using opencv to make a computer vision application. I want a web camera hooked up to a computer to get a video and send it into my c++ program so I can operate on the frames.
How do I interface the web camera to do this with the program?
I don't know opencv, so I can't say if there is something "integrated" and read-made just to be used to achieve your goal, BUT I think WIA (Windows Image Acquisition) is still the technology to use in Windows for cameras and scanners.
Opencv has functions to receive images and video live from a webcam or from a file. I dont know the exact functions but you use cvNameWindow() to create an opencv window. I found a great article showing how to display video and images as well as perform transformations on them.
here is a link to the tutorials but i dont think it shows how to access video. Once you get the camera to take a picture or record video you can save it to a file.
This article list the functions to capture video and images from a camera and save them or to read them from a file. Its very straightfoward and easy to grasp.
unfortunately its not that easy to display the opencv video or images in a window other then the opencv window. You have to use the api to display it in an opencv window which gets rid of all the UI elements you have in other api's. I myself am currently looking for a way to implement it in some way that gives me the option to have a UI and other important things. I'm trying to make an open source, not for profit, project for disabled people.