Results 1 to 3 of 3

Thread: OpenCV and Qt Error While Running!

  1. #1
    Join Date
    Oct 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default OpenCV and Qt Error While Running!

    Hi friends,

    I have problems with OpenCV and Qt,

    in the sample code link = http://forum.donanimhaber.com/m_17940057/tm.htm

    code is working well but i create class and the included all needed OpenCV header fileand make floodfill to member function of my class

    however when i run this function example object->fill(){ floodfill(..,..,..,..,)}

    the program is terminated unexpectedly and Compiler MEssage
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    (Test_014_ColorKinect:11338): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
    OpenCV Error: Unsupported format or combination of formats () in cvFloodFill, file /home/robotic_goruntu/Downloads/OpenCV/opencv/modules/imgproc/src/floodfill.cpp, line 621
    Qt has caught an exception thrown from an event handler. Throwing
    exceptions from an event handler is not supported in Qt. You must
    reimplement QApplication::notify() and catch all exceptions there.

    terminate called after throwing an instance of 'cv::Exception'
    what(): /home/robotic_goruntu/Downloads/OpenCV/opencv/modules/imgproc/src/floodfill.cpp:621: error: (-210) in function cvFloodFill

    The program has unexpectedly finished.>>>>>>>>>>>>>>>>>>>>>>>>

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: OpenCV and Qt Error While Running!

    How is this a Qt question? You've obviously made an error in calling an OpenCV method. The error message from the runtime is quite detailed and tells you *exactly* what you've done wrong. Read it and think about it, and if you still can't figure it out, ask on an OpenCV forum.

    The Qt part of the error message is reported only because OpenCV has thrown an exception from within one of your Qt event handlers (which, as it says, is not supported by Qt). The error is *still* in your use of OpenCV.

    Simply running code, watching it crash, and scratching your head before posting here will not help. You need to step into the OpenCV code and find out where and why OpenCV is throwing the exception, then fix your code.

  3. #3
    Join Date
    Jul 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: OpenCV and Qt Error While Running!

    Quote Originally Posted by d_stranz View Post
    How is this a Qt question? You've obviously made an error in calling an OpenCV method. The error message from the runtime is quite detailed and tells you *exactly* what you've done wrong. Read it and think about it, and if you still can't figure it out, ask on an OpenCV forum.

    The Qt part of the error message is reported only because OpenCV has thrown an exception from within one of your Qt event handlers (which, as it says, is not supported by Qt). The error is *still* in your use of OpenCV.

    Simply running code, watching it crash, and scratching your head before posting here will not help. You need to step into the OpenCV code and find out where and why OpenCV is throwing the exception, then fix your code.
    That was absolutely uncalled for! If you dont have anything to say to help, why even bother.

    This person obviously dint know what to do and hence he went through the trouble of explaining his situation, putting up his code and asking his question. Im a dev too and I would never reply to a question in that fashion. You sir, are a kick(read rhymming word starting with a 'd')
    !

Similar Threads

  1. Error OpenCV capture image
    By Mien89 in forum Qt Programming
    Replies: 3
    Last Post: 18th October 2012, 22:21
  2. error in Qt when use openCV libs
    By somi in forum Qt Programming
    Replies: 2
    Last Post: 14th February 2012, 08:20
  3. Linking Error Qt OpenCV
    By Songi in forum Installation and Deployment
    Replies: 4
    Last Post: 28th August 2011, 04:03
  4. Qt OpenCV SIGSEGV error help
    By bobo in forum Newbie
    Replies: 3
    Last Post: 13th June 2011, 20:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.