开放式& c尖锐 [英] opencv & c sharp

查看:100
本文介绍了开放式& c尖锐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2008并获得了以下代码的编译器错误:[DllImport(HIGHGUI_LIBRARY)]
无法识别DllImport
拜托我需要你的帮忙.谢谢.

I work with visual studio 2008 and get compiler errors for this line:[DllImport (HIGHGUI_LIBRARY)]
it does not recognize DllImport
Please, I need your help. Thank you.

推荐答案

您可能需要在代码顶部添加一个using:

使用System.Runtime.InteropServices;

有关DllImport属性的更多信息,可以查看以下链接:

http://www.devx.com/dotnet/Article/6990/1954?pf=true [ ^ ]

千载难逢的机会
You probably need to add a using at the top of your code:

using System.Runtime.InteropServices;

For more info on the DllImport attribute, you can check out this link:

http://www.devx.com/dotnet/Article/6990/1954?pf=true[^]

Bonne chance




虽然我希望您的错误已解决,因为使用C#标记了此错误,但我还是建议您查看EMGU( www.emgu.com [ ^ ]).它是OpenCV的C#包装器,值得庆幸的是它是免费的,并允许在C#环境中快速使用OpenCV功能.

希望它将使您的编程更快,更容易,因为您不必导入库,而只需引用相关的.dll.

由于EMGU网站目前遇到问题,您可以在 sourceforge.net/ [
Hi,

While I hope your error is solved as this is tagged under C# may I suggest looking at EMGU (www.emgu.com[^]). It''s a C# wrapper for OpenCV that thankfully is free and allows quick use of OpenCV functionality within a C# environment.

It will hopefully make your programming quicker and easier as you will not have to import the libraries and can simply reference the relevant .dll.

As the EMGU website is having difficulties at the moment you can acquire the source at sourceforge.net/[^] please be aware that there are x86 and x64 versions available.

Cheers
Chris


这篇关于开放式& c尖锐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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