OpenCV 未处理的异常错误 [英] Unhandled exception error with OpenCV

查看:112
本文介绍了OpenCV 未处理的异常错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行一个使用 OpenCV 库的程序.该程序已成功编译,但当我尝试运行它时,出现以下错误:

I am trying to run a program that uses the OpenCV library. The program is successfully compiled but when I try to run it I get the following error:

ConvNetUtil.exe 中 0x00007FFA62F6A74A (igdrcl64.dll) 处未处理的异常:0xC0000005:访问冲突读取位置 0x0000000000000994.

Unhandled exception at 0x00007FFA62F6A74A (igdrcl64.dll) in ConvNetUtil.exe: 0xC0000005: Access violation reading location 0x0000000000000994.

我在调试和发布模式下都收到此错误.

I get this error both in debug and release mode.

我的代码非常简单:

Mat nImage;
cv::resize(img, nImage, _sizes[i]);
vector<PyRect> v;

我正在尝试调整从前几行中从磁盘正确读取的垫子图像的大小.

I am trying to resize a mat image that is read correctly from disk in previous lines.

我使用的是 OpenCV 版本 3.谢谢!

I am using OpenCV version 3. Thank you!

推荐答案

您可以通过执行以下步骤来解决此错误;

You can resolve this error by doing these steps;

Uninstall Intel Graphics Driver.
Restart
Remove the following files:

On 64-bit version of Windows OS:
C:\Windows\System32\igdbcl64.dll
C:\Windows\System32\igdfcl64.dll
C:\Windows\System32\igdrcl64.dll
C:\Windows\SysWOW64\igdbcl32.dll
C:\Windows\SysWOW64\igdfcl32.dll
C:\Windows\SysWOW64\igdrcl32.dll
On 32-bit version of Windows OS:
C:\Windows\System32\igdbcl32.dll
C:\Windows\System32\igdfcl32.dll
C:\Windows\System32\igdrcl32.dll

这篇关于OpenCV 未处理的异常错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆