Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

How can I display live camera feed?

$
0
0
As of now, I am doing the following: 1) I have cv::Mat image (from OpenCV) that I convert to a QImage dispQImage 2) Then, each time I get a new frame, I do the following: QLabel *imgDispLabel = new QLabel(”“); imgDispLabel->setPixmap(QPixmap::fromImage(dispQImage)); imgDispLabel->adjustSize(); dockwidget->setWidget(imgDispLabel); This seems to be slow & not a very good way of doing it. Is there a better alternative that I can use? EDIT: I am already CV thing in a worker thread and passing the QImage through the signal. It does improve the performance, but I would like a better way to display the color frame, rather than creating a new label each time.

Viewing all articles
Browse latest Browse all 13965

Latest Images

Trending Articles



Latest Images