Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void updatePicture()
- {
- cap >> image;
- //conversion from Mat to QImage
- Mat dest;
- cvtColor(image, dest,CV_BGR2RGB);
- QImage image1 = QImage((uchar*) dest.data, dest.cols, dest.rows, dest.step, QImage::Format_RGB888);
- //show Qimage using QLabel
- setPixmap(QPixmap::fromImage(image1));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement