Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

openCV & Qt



  • Good morning and excuse me for this question.
    I would like to use openCV in Qt.
    I have tried several solutions but I cannot use these libraries in my project.
    I state that the current situation is as follows:

    • Windows 10 64bit
    • Qt creator 4.11.0
    • openCV libraries ver. 3.49 installed from a precompiled package distributed by the official openCV website.

    How can I correctly configure openCV to be able to use it?

    I thank all those who will help me in advance.



  • @TizUbuntu

    What do you have so far? Any errors? Is OCV installed properly?

    If this is the case, you need to set your lib-paths in your .pro file

    INCLUDEPATH += OCV-PATH-HERE
    
    LIBS += OCV-LIBS HERE (Path to .dll's)
    

    Then you need to include the OCV files in your headers or code files

    e.g.:

    #include <opencv2/core/core.hpp>
    #include <opencv2/highgui/highgui.hpp>
    


  • @TizUbuntu have you check this article?

    BTW, is there a compelling need to use OpenCV 3.x?
    Release 4.20 is available as of now


Log in to reply