[Interest] Writing a Video in Qt Frame by Frame

Ian Monroe ian at monroe.nu
Sat Aug 9 00:48:58 CEST 2014


2014-08-08 15:41 GMT-07:00 Santiago J. Barro-Torres
<santiago.barro at ocsystems.de>:
>
> Hello,
>
> Right now I am using OpenCV (http://opencv.org/) to capture a video from
> a Webcam. I can't do that in Qt because this option is not yet
> implemented in Windows, so I had to look for alternatives.
>
> I still would like to use Qt for the User Interface. How can I integrate
> the single Frames into Qt so that the Video is displayed in the Window?
> (combination of OpenCV for recording + Qt for the displaying).

My app displays a video feed being provided as a sequence of callbacks
with image data. I use a QQuickPaintedItem, I guess it could just as
easily be a QWidget. With each frame I convert the pixmap data to a
QImage and then call the update slot, the paint method just renders
the QImage.

Ian



More information about the Interest mailing list