Momergil
1st December 2012, 03:23
Hello!
I would like to know the steps to include a usb-webcam viewer inside a software.
I did some research already and I noticed that most guys who run with this end up using OpenCV, but I would like not to take this approach - to use an external library to do the job. Personally, I have some problems with external libraries ^^
But anyway, my question is how could I do this using Qt alone. You know, put a QWidget inside the mainwindow .ui and read the webcam's info and plot the video (its video, not simple images (photos)). I noticed the class QCamera and the camera example that comes with Qt, but I wasn't able to include QCamera inside my software as well as I wasn't able to run the example because some classes were missing. And I guess that thoose classes (as with QCamera) were made for mobile applications, while what I want is a webcam viewer for Windows-Desktop.
Please could somebody give me some light in this? If there is no other way, than I'll use OpenCV, but I would really love to avoid it. Besides, I must do this at best in one weak, so no much time to learn about new libraries :)
Thanks,
Momergil
I would like to know the steps to include a usb-webcam viewer inside a software.
I did some research already and I noticed that most guys who run with this end up using OpenCV, but I would like not to take this approach - to use an external library to do the job. Personally, I have some problems with external libraries ^^
But anyway, my question is how could I do this using Qt alone. You know, put a QWidget inside the mainwindow .ui and read the webcam's info and plot the video (its video, not simple images (photos)). I noticed the class QCamera and the camera example that comes with Qt, but I wasn't able to include QCamera inside my software as well as I wasn't able to run the example because some classes were missing. And I guess that thoose classes (as with QCamera) were made for mobile applications, while what I want is a webcam viewer for Windows-Desktop.
Please could somebody give me some light in this? If there is no other way, than I'll use OpenCV, but I would really love to avoid it. Besides, I must do this at best in one weak, so no much time to learn about new libraries :)
Thanks,
Momergil