我正在 Win8.1x64 中通过 EmguCV 和 Visual Studio Express 2010 开发应用程序。当我创建一个新项目(C# windows 应用程序)时,它会自动选择 x86 作为目标平台并且没有其他选择。当我尝试使用以下代码读取图像时出现错误。我知道当未选择目标平台或它与操作系统不同时会出现此错误,但我不知道在这种情况下如何将目标平台更改为 x64!
Image<Gray, byte> OrginalImage = new Image<Gray, byte>(Openfile.FileName);
[System.BadImageFormatException] = {"An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"}
最佳答案
在 visual studio 2010 中设置目标平台的简单谷歌搜索 How to: Configure Projects to Target Platforms
确保您在 x64 位 CPU 架构计算机上使用 x64 位版本的 EmguCV。
关于c# - 如何在 Win8.1x64 中配置 EmguCV 和 Visual Studio Express 2010,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42050374/