PDA

View Full Version : Connect camera in Qt?



nthung
20th May 2010, 12:07
I am programming on Qt 4.6 ,OS windows 7 but when I #include<QCamera> It dissplay Message"QCamera: No such file or directory"
I need to connect Camera but i don't how to connect,please help me? thanks

high_flyer
20th May 2010, 12:16
True.
There is no QCamera class in Qt.

nthung
20th May 2010, 12:20
thanks
but I downloaded some demos, some developers still used Qcamera class.
What do say about that?
But if I want to connect Camera, how to I have to do?
Thanks agian.

tbscope
20th May 2010, 12:25
QCamera is meant to be used on mobile phones (unless I'm wrong)

nthung
20th May 2010, 12:27
thanks
but if i want to connect on Computer, how to connect to CAmera?
thanks

tbscope
20th May 2010, 12:33
You find a library that can do that.
I guess my first look would be GStreamer or similar

aamer4yu
20th May 2010, 13:33
but if i want to connect on Computer, how to connect to CAmera?
Which camera you talking ? if webcam, check out for OpenCV..
there's also posts about using OpenCV in Qt.. search for it :-)

high_flyer
20th May 2010, 13:56
Did you install Qt Mobility as it says here?
http://doc.trolltech.com/qtmobility-1.0-beta/installation.html

nthung
24th May 2010, 04:51
thanks for your answer. but i Knew that Skype is wrritten with Qt, and Skype has Camera. What do you think about that?
And i want to ask you how to install Debug packet for Qt on Fedora 11? I don't how to install that
thanks

squidge
24th May 2010, 09:18
Maybe they have written code to access camera on the platforms they are compatible with.

aamer4yu
24th May 2010, 09:25
but i Knew that Skype is wrritten with Qt, and Skype has Camera. What do you think about that?
may be the ui and networking is done using Qt.. are you sure skype uses Qt for camera ? since skype has video calls long before Qt introduced camera in mobility , isnt it ?

high_flyer
25th May 2010, 12:09
Read my last post again, and have a look at the link.
It will tell you where QCamera comes from. :rolleyes:

wysota
25th May 2010, 12:19
but i Knew that Skype is wrritten with Qt, and Skype has Camera. What do you think about that?
Skype supports video input through native API such as V4L on Linux.