Windows 7 64 位中的 OpenCV 2.4 错误 0xc0000005 [英] OpenCV 2.4 error 0xc0000005 in Windows 7 64 bit

查看:29
本文介绍了Windows 7 64 位中的 OpenCV 2.4 错误 0xc0000005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 64 位中使用 CodeBlocks,我使用 MinGw 作为我的默认 c/c++ 编译器.

I am using CodeBlocks in my windows 7 64 bit and I use MinGw for my default c/c++ compiler.

几天前我需要使用 OpenCV,在我遇到了很多错误之后,我遇到了这样的无法解决的错误:

Few days ago I need to use OpenCV, after I struggle a lot of error, I get unsolveable error like this :

示例代码:

#include "cv.h"
#include "highgui.h"

int main( int argc, char** argv ) {
    IplImage* img = cvLoadImage( argv[1] );
    cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE );
    cvShowImage( "Example1", img );
    cvWaitKey(0);
    cvReleaseImage( &img );
    cvDestroyWindow( "Example1" );
}

我相信我的链接 &目录设置正确.所以请帮助我 :) 我要放弃了 :(

I believe my linked & directory setting is correct. So please help me :) I am about to give up :(

推荐答案

假设您在代码和图像中所做的一切都正确,这可能是由于 opencv 二进制文件不兼容而导致的问题.

Assuming that you are doing everything correct in the code and the image, this can be a problem due to incompatible opencv binaries.

请查看 a类似的安装来编译,看看它是否有效.我在安装时遇到了类似的问题,通过再次编译二进制文件解决了这个问题.

Please have a look at a similar installation to compile and see if it works. I had a similar problem in my installation, which was fixed by compiling the binaries again.

这篇关于Windows 7 64 位中的 OpenCV 2.4 错误 0xc0000005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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