Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Learning
  3. Qt in Education
  4. Find contours error in qt
Forum Updated to NodeBB v4.3 + New Features

Find contours error in qt

Scheduled Pinned Locked Moved Qt in Education
2 Posts 2 Posters 2.4k 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.
  • J Offline
    J Offline
    Jijith Janardhanan
    wrote on last edited by
    #1

    When i am using findcontours function of opencv library there is an exception occurring
    _" OpenCV Error: Assertion failed (k == STD_VECTOR_MAT) in create, file /build/buildd/opencv-2.3.1/modules/core/src
    matrix.cpp, line 1309
    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(): /build/buildd/opencv-2.3.1/modules/core/src/matrix.cpp:1309: error: (-215) k == STD_VECTOR_MAT in function create

    The program has unexpectedly finished."_.

    • How can i over come this exception . When using the same function in console it is working. Suggest me a solution to this problem*
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Has silly has it may sound, you need to fix the code using OpenCV.

      The problem is not Qt related. Qt just tells you that OpenCV has thrown an exception and you didn't catch it anywhere.

      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

      • Login

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