我试图调试我的程序,在c#中使用emgu和HaarCascade。 我收到一个例外:
i'm trying to debug my program, using emgu and HaarCascade in c#. i'm getting an exception like so :
无法加载DLL'cvextern':找不到指定的模块。 (HRESULT的异常:0x8007007E)
Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
我已将文件cvextern.dll添加到我的项目中,并尝试复制总是和在文件的属性上复制更新选项。而且,build是在x64平台上。
i've added the file cvextern.dll to my project and tried both "copy always" and "copy if newer" options on the properties of the file. also, the build is in platform x64.
这部分是我写的:
private void Load_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "Photo Files (*.jpg)|*.JPG"; dlg.CheckFileExists = true; if (dlg.ShowDialog() == DialogResult.OK) { Image<Bgr, Byte> My_Image = new Image<Bgr, byte>(dlg.FileName); HaarCascade face = new HaarCascade("haarcascade_frontalface_alt.xml");,异常处于最后一行。
推荐答案您收到的错误并不完全归结为cvextern,这个DLL实际上指向几乎所有其他opencv DLL,所有这些都是必需的。有了这个错误,您将需要在项目中使用以下dll。
The error your receiving is not solely down to cvextern this dll actually points to almost all of the other opencv dlls and all are required. With this error you will require the following dll in your project.
请注意,220是根据更新而更改的版本号。
Note that the "220" is the version number this will change according to updates.
- cudart64_32_16.dll
- cufft64_32_16.dll
- cvextern.dll
- npp64_32_16.dll
- opencv_calib3d220.dll
- opencv_contrib220.dll
- opencv_core220.dll
- opencv_features2d220.dll
- opencv_flann220.dll
- opencv_gpu220.dll
- opencv_highgui220.dll
- opencv_imgproc220.dll
- opencv_legacy220.dll
- opencv_ml220 .dll
- opencv_objdetect220.dll
- opencv_video220.dll
- cudart64_32_16.dll
- cufft64_32_16.dll
- cvextern.dll
- npp64_32_16.dll
- opencv_calib3d220.dll
- opencv_contrib220.dll
- opencv_core220.dll
- opencv_features2d220.dll
- opencv_flann220.dll
- opencv_gpu220.dll
- opencv_highgui220.dll
- opencv_imgproc220.dll
- opencv_legacy220.dll
- opencv_ml220.dll
- opencv_objdetect220.dll
- opencv_video220.dll
在我的文章中,有关 codeproject here 的文章中的其他内容将会覆盖此错误。
This error is covered along with others in my article on codeproject here.
任何其他问题让我知道,
Any other problems let me know,
干杯,
Chris
更多推荐
无法在c#项目中加载cvextern
发布评论