Required Includes and Libraries for OpenCV in Qt

Update on March 18th, 2018: Now you can use this post for a more recent, accurate and complete guide on adding OpenCV to Qt projects.

Use the following lines in a .pri file that is added to your project by using “include(C:/opencv/opencv.pri)”. This allows easy including of headers and library references in a Qt project.

(Note that in case you are using another version of OpenCV, your library names might be different.)

Continue reading “Required Includes and Libraries for OpenCV in Qt”