Ask Your Question
0

Assertion failed

asked 2014-07-29 07:12:22 -0600

RJ gravatar image

I compiled program, which worked fine. And I made it independent (put all needed files in program's folder) for to run on any computer. I re-installed Windows, install QT and OpenCV again, but now, this program work sometimes. I can't understand: how it's possible, for program, which worked fine how working sometimes? Message, which I got: "Dubug Error! Program...R6010 - abort() has been called".

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-29 07:26:36 -0600

unxnut gravatar image

updated 2014-07-29 07:27:30 -0600

If you google your error, you may be able to find the answer. One of the possibilities is mentioned here. Your data files may not be in the correct location.

edit flag offensive delete link more

Comments

I read this post before. Still can't to solve a problem

RJ gravatar imageRJ ( 2014-07-29 08:30:06 -0600 )edit

Is it possible for you to specify absolute path for your data files that are required for your program? Do you still get the same error?

unxnut gravatar imageunxnut ( 2014-07-29 08:41:13 -0600 )edit

I did it! Still the same error

RJ gravatar imageRJ ( 2014-07-29 08:59:00 -0600 )edit

If you have the source, can you run it through debugger to localize the error?

unxnut gravatar imageunxnut ( 2014-07-29 09:36:58 -0600 )edit

"OpenCV Error: Sizes of input arguments do not match (The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array') in cv::arithm_op, file C:\OpenCV\sources\modules\core\src\arithm.cpp, line 1287". But, U know what the strange: that before it's all worked fine, all was matching. And another message: "OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file C:\OpenCV\sources\modules\imgproc\src\color.cpp, line 3737"

RJ gravatar imageRJ ( 2014-07-30 09:50:45 -0600 )edit

There are your answers. Check the calls being made to those functions (like cvtColor) and make sure that your parameters are correct.

unxnut gravatar imageunxnut ( 2014-07-30 13:43:25 -0600 )edit

Question Tools

Stats

Asked: 2014-07-29 07:12:22 -0600

Seen: 607 times

Last updated: Jul 29 '14