Configuration Qt with OpenCV in linux



  • hi

    i am using ubuntu12.04 , Qt 2.4.1 and OpenCV2.3.1 and i have downloaded and installed them with ubuntu repository.
    i have tried for 2days to run an example of opencv on it but i got some errors .

    now i have some questions :

    1- if i want to make a project with a picturebox(like visual studio, for getting camera image from webcam) and some bottones for controll it , i must choice which type of project in Qt ( seems QuickQt or application UI or console?!:D or etc ? )

    2- i had write this codes in my .pro file of projects :

    INCLUDEPATH += /usr/include/opencv
    INCLUDEPATH += /usr/include/opencv
    LIBS += -L/usr/lib -lopencv_core -lopencv_highgui and .........

    (my opencv installed files are in that directory)
    but my project doesnt work still . should i do other works ?

    3- may anyone puts a project with opencv in Qt that i test it and i learn how should i fix it?


  • Lifetime Qt Champion

    Hi,

    1 - Up to you to decide, try both QWidget and QtQuick. Console won't help since it's for command line application.

    2 - What doesn't work ? It doesn't build ? It doesn't start ? Have a look at pkg-config (also in Qt doc) that will simplify things for you



  • U can see the source code of my Application 'Wallch'. We used opencv for the 'Take Webcam Image' feature.

    Link: http://sourceforge.net/projects/wall-changer/files/?source=navbar
    download the wallch-3.01.tar.gz



  • [quote author="Leon" date="1361292707"]U can see the source code of my Application 'Wallch'. We used opencv for the 'Take Webcam Image' feature.

    Link: http://sourceforge.net/projects/wall-changer/files/?source=navbar
    download the wallch-3.01.tar.gz[/quote]

    error :
    package libnotify not found !



  • then install it :)
    The reason synaptic manager exists...



  • The packages you must install from Synaptic package manager are:
    libnotify-dev
    libunity-core-6.0-dev
    libexif-dev
    libkeybinder-dev
    libopencv-dev

    tell me if this helped you ;)



  • [quote author="Leon" date="1361295508"]then install it :)
    The reason synaptic manager exists...[/quote]

    then i installed it but it requires a new package that i cant found it in synaptic

    dee-1.0

    do you have another simple than program? :D



  • [quote author="Leon" date="1361295831"]The packages you must install from Synaptic package manager are:
    libnotify-dev
    libunity-core-6.0-dev
    libexif-dev
    libkeybinder-dev
    libopencv-dev

    tell me if this helped you ;)[/quote]

    oh i didnt see this post . let me to try it and i will tell about result



  • yes , it worked after installation libraries.

    just i can say thank you!
    and i hope i read it and learn more about immage-processing and ask you a lot of questionas about that :D



  • @ leon :

    if i want to make a program like yours , i must choice whch type of project in QtCreator(i mean which template)

    also , i want to know how you made forms and headers and addet those to your project?



  • Contact me at leon.vitanos@gmail.com, but be a little more detailed in your questions ;)



  • thanks dear

    why this project doesnt work?

    http://uplod.ir/yp29ey2h21ap/QtOpenCV.tar.gz.htm


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.