PDA

View Full Version : Control WebCam with Qt



lixo1
21st May 2009, 20:29
Hi everybody,

I would like to know if someone knows the way to get the data and elaborate the image from a pc webcam, connected via USB, for Linux, Windows, and Mac, using with Qt.
If you have documentations or other interestings remarks about this kind of project please post it.

Thank you in advance, for all informations,
Cheers,

rbp
22nd May 2009, 03:07
For my Qt app I use the cross platform OpenCV (http://opencv.willowgarage.com/wiki/) library to get and process images from my webcam.

lixo1
22nd May 2009, 08:53
OpenCV seems a very good library, my project is to create an artificial "eye", that is a webcam mouted on a electric engine.
Thank you very much,
Cheers,

rbp
22nd May 2009, 09:05
just a warning - OpenCV has restrictions on the resolution of the camera feed. You can read more about it here: http://stackoverflow.com/questions/14287/increasing-camera-capture-resolution-in-opencv

Unfortunately I haven't come across a high quality cross platform webcam library.
So if your eye will rely on a high resolution camera feed, then you might need to use platform dependent libraries, such as DirectShow and Video4Linux.

lixo1
22nd May 2009, 09:21
Thank you for the warning, I tried it with my webcam, and to begin OpenCV is good for me.