Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Configuration Qt with OpenCV in linux
Forum Update on Monday, May 27th 2025

Configuration Qt with OpenCV in linux

Scheduled Pinned Locked Moved General and Desktop
12 Posts 3 Posters 7.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hor_313
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hor_313
          wrote on last edited by
          #4

          [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 !

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Leon
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Leon
              wrote on last edited by
              #6

              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 ;)

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hor_313
                wrote on last edited by
                #7

                [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

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hor_313
                  wrote on last edited by
                  #8

                  [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

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hor_313
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hor_313
                      wrote on last edited by
                      #10

                      @ 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?

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        Leon
                        wrote on last edited by
                        #11

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

                        1 Reply Last reply
                        0
                        • H Offline
                          H Offline
                          hor_313
                          wrote on last edited by
                          #12

                          thanks dear

                          why this project doesnt work?

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

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved