Show image from web cam in qt desiner
-
I guys!
I need to show a video camera image from a webcam in qt desiner. I'm new in qt, so I thought to use a mdiArea but I don't know if it's correct and how show the video.Can anyone help me?
Thanks.
-
A good start would be to have a look at the Multimedia module's examples, particularly the Camera Example:
"http://qt-project.org/doc/qt-5.0/qtmultimedia/multimediawidgets-camera.html":http://qt-project.org/doc/qt-5.0/qtmultimedia/multimediawidgets-camera.html
See if you can make it work with a webcam of yours. Then, it is probably possible to embed the viewer widget in an MDI window if you want to display additional windows.
Another way I did it was to use an external imaging library such as OpenCV. It's possible to transfer the image data from a cv::Mat object to a QImage and then displaying it in a QLabel.