You might have noticed that trying to read images that have special characters (such as Ü, Ö or other non-Ascii characters) with imread function in OpenCV will lead to crash. I noticed this while trying to open files with special Turkish characters (but I assume it is the same with Spanish, French, German or any other languages.) If you are using Qt, you are lucky because there is a workaround.
Continue reading “How to correctly read Mat images with special characters in filename”How to display a Mat image in Qt
You can use this method to convert an OpenCV Mat image to a Qt QImage which then can be easily turned into a QPixmap and then displayed on a QLabel. It might sound a little bit confusing but I’ll explain all of its parts. Check the method and my descriptions below:
Continue reading “How to display a Mat image in Qt”