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

查看:160
本文介绍了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天全站免登陆