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”Picture Stamper 1.9.3 Released (First Official Release)
I released Picture Stamper officially just moments ago, and for the best possible price, ABSOLUTELY FREE, for anyone who needs a tool such as this. For so long I needed an application to stamp my photos before sharing them on the web but in the end I had no other choice but to write it myself because all options were either too complicated and pricy or they were just not what I needed.
Continue reading “Picture Stamper 1.9.3 Released (First Official Release)”
Whirling Compass

The universe said: I do not have any power over your whirling [,why?]
I answered: It is such a “Point” that made me a compass.
Rumi, Diwan-e Shams-e Tabrizi
How to find Edges in a Qt QImage
Finding edges is crucial in many image processing applications because it gives a better understanding of the elements in a picture. This post contains download link to an example project (ready to build and run) in Qt that uses nothing but the existing Qt classes, namely QImage, to detect and display edges in a QImage.
How to read image orientation in Qt (Using stored EXIF)
Updated: QImageReader class in Qt has a new method (introduced in Qt 5.5) named transformation() which you can use for this purpose but this article still applies if you are not using 5.5 or having problems with QImageRaader. Also it is a useful example on how to use GDI in Qt.
You might have also noticed that Qt reads jpg, tif and other types of images that it supports without paying any attention to EXIF information stored in them. EXIF meta data contains highly valuable information about the characteristics of a photograph. Let’s say you want to read an image file into QImage and do some process over it. It is crucial to know what type of orientation the image needs to go through right after reading it.
Continue reading “How to read image orientation in Qt (Using stored EXIF)”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”How to blur an image in Qt
Today I want to share the source code of an example project that shows you how to blur (Gaussian blur) an image (QImage to be precise) without using any third party image processing libraries such as OpenCV. Sometimes it might be useful to avoid deploying OpenCV libs just for achieving a blur effect.
How to get position and size of another program’s window in Qt?
You can use Windows API functions to read the position (left and top, or x and y) of a window that does not belong to your program in Qt. GetWindowRect function allows you to read these values and also right and bottom which can then be used to extract width and height of that window. Note that you need to know the title of your target window or else it is not possible to achieve that. Follow th simple steps below to be able to do this.
Continue reading “How to get position and size of another program’s window in Qt?”WinShut v1.0 (Lightweight Shutdown Scheduler for Windows)
WinShut is a Windows program that allows Scheduled Shutdown of your computer. You only need to set a date and time and toggle a check box. It is completely free and very easy to use.
Continue reading “WinShut v1.0 (Lightweight Shutdown Scheduler for Windows)”
Minimize All Windows Except Yours (in Qt)
You can use the little piece of magic in this post to minimize all programs and windows except yours in Qt (C++)
Continue reading “Minimize All Windows Except Yours (in Qt)”