Hi everyone ,
I want to capture images form webcam.I have not any idea about this thing.
Can any one tell how i display video streaming and capturing image using QT.
thanks.
Hi everyone ,
I want to capture images form webcam.I have not any idea about this thing.
Can any one tell how i display video streaming and capturing image using QT.
thanks.
There are tow different tasks here:
1. Getting data form camera
2. Displaying the data.
With 1 we can't help you other than to say, that your Camera provider provides also a driver and a lib to which you can link, and operate the camera, and retrieve data from it.
We can help you with 2, once you have got 1 sorted out first.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Thanks for replay.
I am using logitech webcam 120.I have a software though which i am able to capture image.But how i know which libraries are required ?
These libs are part of the software you mentioned.But how i know which libraries are required ?
Read the documentation you got with the camera, see if there is anything that talks about libs and headers to be used in apps that want to operate the camera.
Google can help you with it as well.
You need the Dlls, the corresponding lib files and the header files.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
For windows only, see http://www.quickcamteam.net/document...wn-application
For cross-platform you can use OpenCV (is slightly more difficult to use, but this effort is worth) http://opencv.willowgarage.com/wiki/
Also, you can check http://www.quickcamteam.net/documentation/
Now i am trying same thing in linux.I download camorama.Using this i am able to connect to webcam.Can you give some hints how i will add this things in my program.
Is phonon help me ?
For linux only, you can use V4L (Video4Linux). Their headers and libraries are included in almost all linux distro. Documentation can be found here
can any one tell me how to display the frame in qt ?
I am using opencv.
Load the frame data into a QImage and use QPainter::drawImage() to draw the frame.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks