gpt4 book ai didi

c# - 如何在 Win8.1x64 中配置 EmguCV 和 Visual Studio Express 2010

转载 作者:太空狗 更新时间:2023-10-29 21:38:03 24 4
gpt4 key购买 nike

我正在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com