[英]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.