关于在Opencv中使用Releaseimread时候出现,错误
Posted 小蚂蚁_CrkRes
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于在Opencv中使用Releaseimread时候出现,错误相关的知识,希望对你有一定的参考价值。
0x5a6f37ff (msvcr100d.dll) 处有未经处理的异常: 0xC0000005: 读取位置 0x706d622e 时发生访问冲突
使用imread("test.bmp");发生错误:
错误原因为我们在配置opencv的时候直接将debug版本和release版本的lib一起包含进去
解决方法:
分别包含,release和debug版本的库文件
vs2010 opencv2.4.9配置属性表:
debug:
opencv_ml249d.lib
opencv_calib3d249d.lib
opencv_contrib249d.lib
opencv_core249d.lib
opencv_features2d249d.lib
opencv_flann249d.lib
opencv_gpu249d.lib
opencv_highgui249d.lib
opencv_imgproc249d.lib
opencv_legacy249d.lib
opencv_objdetect249d.lib
opencv_ts249d.lib
opencv_video249d.lib
opencv_nonfree249d.lib
opencv_ocl249d.lib
opencv_photo249d.lib
opencv_stitching249d.lib
opencv_superres249d.lib
opencv_videostab249d.lib
release:
opencv_objdetect249.lib
opencv_ts249.lib
opencv_video249.lib
opencv_nonfree249.lib
opencv_ocl249.lib
opencv_photo249.lib
opencv_stitching249.lib
opencv_superres249.lib
opencv_videostab249.lib
opencv_calib3d249.lib
opencv_contrib249.lib
opencv_core249.lib
opencv_features2d249.lib
opencv_flann249.lib
opencv_gpu249.lib
opencv_highgui249.lib
opencv_imgproc249.lib
opencv_legacy249.lib
opencv_ml249.lib
以上是关于关于在Opencv中使用Releaseimread时候出现,错误的主要内容,如果未能解决你的问题,请参考以下文章
立体匹配:关于OpenCV读写middlebury网站的给定的视差的代码
如何在 Flutter 的原生 C++ 中使用 OpenCV 4(2021 年)(支持 Flutter 2.0)? [关闭]