简体   繁体   English

opencv断言失败(matrix.cpp第508行)

[英]opencv assertion failed (matrix.cpp line 508)

I have used visual studio 2015 express to compile a program which can be successfully run in my first computer. 我使用Visual Studio 2015 Express编译了可以在我的第一台计算机上成功运行的程序。 Then I tried to move the dll files needed to run the program and the exe file generated by vs to another computer which didnt install vs 2015 and opencv library. 然后,我尝试将运行该程序所需的dll文件和vs生成的exe文件移动到另一台未安装vs 2015和opencv库的计算机上。

However, the program can only be run in the half way and will have error shown in the below picture when doing opencv functions declared inside the program. 但是,该程序只能以一半的方式运行,并且在执行程序内部声明的opencv函数时将出现下图所示的错误。

What's wrong with the program? 该程序怎么了? Would you mind giving me any suggestion to fix it? 您介意给我任何解决建议吗?

Thanks!! 谢谢!!

https://drive.google.com/file/d/0B9_vlz2OS7h9Q1JTSHQ1MUVQazg/view?usp=sharing https://drive.google.com/file/d/0B9_vlz2OS7h9Q1JTSHQ1MUVQazg/view?usp=sharing

One (or more) of those conditions in the assert statement is returning false. assert语句中的这些条件中的一个(或多个)返回false。 Suggest commenting them out one by one and see which one is causing the problem. 建议一一注释掉它们,然后看看是哪个引起了问题。 You could also just remove the assert statement (typical when in production) and test the program's behavior. 您也可以只删除assert语句(通常在生产中使用)并测试程序的行为。

The problem should not be the missing vs 2015. 问题不应该是缺少2015年。

It looks like an exception thrown by the constructor of the Region of interest (cv::roi i think?). 它看起来像是感兴趣的区域的构造函数抛出的异常(我认为是cv :: roi?)。 You are trying to create a roi that is either bigger then the original image or you are trying to make a roi with negativ with or height. 您正试图创建一个roi,该roi要么大于原始图像,要么正试图制作一个带有负高度或高度的roi。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OpenCV错误:断言在matrix.cpp第522行/matrix.cpp:522中失败:错误:(-215) - OpenCV Error: Assertion failed in matrix.cpp line 522, /matrix.cpp:522: error: (-215) 断言失败&lt;0 &lt;= i &amp;&amp; i &lt; <int> 未知函数中的vv.size &lt;&gt;&gt;,文件src \\ matrix.cpp,第912行 - Assertion Failed <0 <= i && i < <int>vv.size<>> in unknown function, file src\matrix.cpp, line 912 OpenCV:Matrix.cpp中的未知数组类型错误 - OpenCV: Unknown Array Type error in Matrix.cpp OpenCV错误:相机校准:断言matrix_wrap.cpp中失败 - OpenCV Error: Camera Calibration: Assertion failed in matrix_wrap.cpp OpenCV错误:断言失败,mat.cpp行537 - OpenCV Error: Assertion failed, mat.cpp line 537 Matrix乘法中的OpenCV断言失败 - OpenCV Assertion failed on Matrix multiplication OpenCV错误:断言失败(scn == 3 || scn == 4)在cv :: cvtColor中,文件.. \\ .. \\ .. \\ .. \\ opencv \\ modules \\ imgproc \\ src \\ color.cpp,第3737行 - OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv:: cvtColor, file ..\..\..\..\opencv\modules\imgproc\src\color.cpp, line 3737 OpenCV Mat :: at 537行断言失败错误 - OpenCV Mat::at line 537 Assertion Failed Error 尝试复制部分OpenCV矩阵时断言失败 - Assertion failed when trying to copy part of OpenCV Matrix OpenCV错误:重复断言失败(ny&gt; 0 &amp;&amp; nx&gt; 0),文件opencv / modules / core / src / copy.cpp, - OpenCV Error: Assertion failed (ny > 0 && nx > 0) in repeat, file opencv/modules/core/src/copy.cpp,
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM