OpenCV findContours 崩溃问题

今天使用opencv的时候,莫名的崩溃了

is_block_type_valid

我使用的是vs2013 然后采用的opencv是网上下载好的版本2.1413。不过是2015版的。

 

stackoverflow的答案:

https://stackoverflow.com/questions/38461577/why-i-solved-debug-assertion-failed-opencv-is-block-type-validheader-block-u

The problem is in your configuration. Be sure to link to debug OpenCV libraries in debug mode, and release libs in release. Also be sure to use OpenCV compiled with the same compiler as your project. Now you havn't solved the problem, it's just hidden – Miki Jul 20 '16 at 10:48

 

然后使用vs2013自己编译了相关的dll, lib。解决了

posted @ 2018-03-11 20:13  light_world  阅读(423)  评论(0编辑  收藏  举报