Find contours error in qt
-
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 createThe 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*
-
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.