×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    7

    OpenCV conflict with QIMage in Ubuntu

    Hello

    I am running a Ubuntu 12.04 installation with the latest Qt SDK. I've compiled OpenCV and imported the libraries into the QtSDK folders.

    Qt recognizes the libraries and allows me to build the project if I include the following:

    Code:
        unix: LIBS +=   -lopencv_core \
                    -lopencv_highgui \
                    -lopencv_imgproc \
                    -lopencv_objdetect \
                    -lopencv_contrib
    The project runs correctly with no errors from the OpenCV until I try to get it to save an image as QImage.

    If that wasn't enough, I've also got QML files serving as the user interface, and if I include any "Image" element in them, the program "unexpectedly exits". If I remove the OpenCV code, the program runs correctly with the Image element. If I remove the Image element and re-insert the OpenCV code, the program runs correctly (as long as I do not have QImage anywhere in my code).

    I've tried to rebuild OpenCV, and try new Qt projects, but this "conflict" still remains between OpenCV and QImage (and QML Image element).

    My colleagues are able to run the project without problems on their Windows 7 machines.

    Please advise.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: OpenCV conflict with QIMage in Ubuntu

    Hi

    You cannot use QImage directly in openCV but you have to convert it to and from openCV image representation structure. That conversion is made somewhere outside of openCV. Maybe you miss to recompile one more library that does that conversion.

    Regards,
    Igor

Similar Threads

  1. OpenCV on N950
    By blackcoder in forum Nokia N9
    Replies: 51
    Last Post: 2012-03-19, 04:49
  2. Replies: 2
    Last Post: 2011-05-02, 23:12
  3. An Example For Gstreamer + OpenCV
    By pta0007 in forum Nokia N9
    Replies: 3
    Last Post: 2010-06-24, 12:14
  4. OpenCV in Qt example
    By Dorfmeister in forum Nokia N9
    Replies: 25
    Last Post: 2010-06-17, 08:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •