Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User merajchhaya's Avatar
    Join Date
    Jul 2012
    Posts
    7
    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 izinin's Avatar
    Join Date
    Oct 2007
    Posts
    441
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved