Qimage and multi-threading
saghi.sharif last edited by
I'm developing a framework where I need to work with high quality images of the camera connected to it. I can get image sequences from the camera with CV::Mat. In order to display this images, I have to loop through the cv::Mat and set it to QImage and finally using a qlabel I draw it . Since the images are very large, this process is very time consuming and I can't have a smooth video in the final result. Is there a way that I can run this process on a separate thread? as I know QImage should be used only in the main thread.
Thanks in advance for any suggestion.
It is fine to use QImage in a secondary thread.
QPixmap is the class that must be used in the main thread.