View Single Post
Posts: 2 | Thanked: 0 times | Joined on Dec 2010
#1
I am working on the application exploring Augmented Reality features. I need to get the image/video from the external USB Web-camera (Logitech Webcam C300) that is placed on my head-mounted display.

I can connect Logitech Webcam C300 via h-e-n and show image from it using mplayer:
1) connect webcam to N900 USB port via adapter
2) run h-e-n and make standard actions to init USB webcam
3) mplayer tv:// -tv device=/dev/video2:width=176:height=144

But when I try to choose USB Webcam from my Qt-program, there are 2 cameras available only - "Main Camera" and "Front Camera".

Could you please help me - is it possible to make that QtMobility see the external camera (withiut recompiling QtMobility)?

If no - there must be the "linux way" to work with camera via /dev/video2. Could you please give me a code sample that reads video stream from /dev/video2.