Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [solved] Linking Nokia Qt with OpenVC
Forum Updated to NodeBB v4.3 + New Features

[solved] Linking Nokia Qt with OpenVC

Scheduled Pinned Locked Moved Mobile and Embedded
37 Posts 9 Posters 20.9k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    tanclanship
    wrote on last edited by
    #27

    Gerolf I have done the following list. And now it shows no error. The emulator pop up as usual once debug.Alright so far so good.
    Cincirin do you have any simple coding for using OpenCV. so i could test its working

    @ IplImage *img = cvLoadImage("funny-pictures-cat-goes-pew.jpg");
    cvNamedWindow("Image:",1);
    cvShowImage("image:",img);

        cvWaitKey();
        cvDestroyWindow("Image:");
        cvReleaseImage(&img);
        
        return 0;
    

    @

    The code above provided using CVNamedWindow cannot be use in the QTSimulator.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #28

      You can download CMake from "here":http://www.cmake.org/cmake/resources/software.html
      But I'm not sure if you really want to use QtCreator for building your application and linked this with OpenCV library.
      CMake is cross-platform, open-source build system. For windows you have to choose for generating binaries (projects) between Visual Studio editions that you have them installed (2008, 2010, etc), CodeBlocks, makefiles, etc...
      As I said, I chose to compile the entire OpenCV library (all modules) with QtCreator for easy linked, debug, integrate in my application. QtCreator qmake project is not in CMake list. Therefore, each qmake project must be written manually.
      Fortunately for windows users, a solution can be:

      • generate VC projects with CMake
      • for every *.vcproj generated by CMake, manually create QtCreator project (static or dynamic library), and put in them all sources and headers from corresponding *.vcproj file.

      Other solution, without using QtCreator is:

      • download VC express 2008 (or if you have non-free editions, is better, because you can install Qt plug-in for VC)
      • choose VC 2008 from CMake list
      • download Qt libraries 4.7.2 for windows, it comes with VC2008 pre-compiled libraries
      • use VC 2008 for develop your app
      1 Reply Last reply
      0
      • C Offline
        C Offline
        cincirin
        wrote on last edited by
        #29

        Sure, for the moment I use OpenCV for calibrate lens of the Logitech 1080p webcam two cameras and put them in video stream. I don't know if you have a webcamera, but a sample program looks like :

        // init camera capture
        CvCapture* cameraCapture = cvCaptureFromCAM(0);

        // start a 0.1-second QObject timer
        timerID = startTimer(100);

        // ... and in your timerEvent ...
        IplImage* image = cvQueryFrame(cameraCapture);

        // you can convert IplImage in QImage "easy":http://www.qtcentre.org/threads/11655-OpenCV-integration

        // when finish, kill timer and release capture
        killTimer(timerID);
        cvReleaseCapture(&camerasCapture);

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MAMartins
          wrote on last edited by
          #30

          [quote author="Scylla" date="1300001278"]On my mac I have just this in my *.pro file
          @INCLUDEPATH += /usr/local/include/opencv
          LIBS += -lopencv_highgui@
          Take a look "here":http://qt-apps.org/content/show.php/Qt+Opencv+webcam+viewer?content=89995[/quote]

          Scylla, how did you installed the opencv? i've downloaded an opencv 2.0 dmg from their website but I don't have the /usr/local/include/opencv

          I have it on my framework folder:
          /System/Library/Frameworks/OpenCV.framework

          how can I link it?

          thanks a lot

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Scylla
            wrote on last edited by
            #31

            I have downloaded the source "OpenCV-2.2.0.tar.bz2", unpacked, compiled and installed the libs (ccmake ., make, sudo make install). Nothing more!

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MAMartins
              wrote on last edited by
              #32

              ok i've figured it out. i've downloaded the 2.0 dmg and installed it on the framework folder.

              to access it i've added this to .pro:

              LIBS += -framework OpenCV

              is there any major diference between 2.0 and 2.2?

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Polto
                wrote on last edited by
                #33

                www.remnum.com
                you can find the full steps to build and link opencv 2.2 with qt
                on windows and mac system
                with project using qthread

                Polto

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MAMartins
                  wrote on last edited by
                  #34

                  thanks, already solved it ;)

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DenisKormalev
                    wrote on last edited by
                    #35

                    If you've solved problem, please mark your thread as [solved]

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MAMartins
                      wrote on last edited by
                      #36

                      this is not my thread :P

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mgran
                        wrote on last edited by
                        #37

                        [quote author="Denis Kormalev" date="1303315410"]If you've solved problem, please mark your thread as [solved][/quote]

                        I'm on it :)

                        Project Manager - Qt Development Frameworks

                        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