标签:com http blog code div img style size tar ext art
Emgu CV 是.NET平台下对OpenCV图像处理库的封装,也就是.NET版。可以运行在C#、VB、VC++等。
安装完成后需要设置环境变量,比如我安装在D:\Emgu\emgucv-windows-universal-cuda 2.9.0.1922,然后再系统环境变量添加D:\Emgu\emgucv-windows-universal-cuda 2.9.0.192\bin即可
Emgu CV下载地址
http://sourceforge.net/projects/emgucv/files/
找最新的下就行了,傻瓜式安装,选择目录后自动完成安装,然后提示安装VS2008和VS2010的插件,我使用的是VS2010,然后完成操作。
example1:C#下的openCV(Emgu CV)
example2:VS2010+C#+EmguCV读取和录制视频
example3:C#使用EmguCV实现视频读取和播放
Emgu.CV.CvInvoke 的类型初始值设定项引发异常
reference:VS2010、C#、Emgu CV配置 ;
首先确定没有重复安装opencv和emgucv两种,这样有可能在配置path时会出错。emgucv是包含opencv的,使用C#开发的朋友们,可以放心的只安装emgucv。
1、如遇错误提示:tbb_debug.dll找不到
请下载安装Intel TBB库,需要将tbb库或dll文件所在路径,配置带系统环境变量path中。
2、如遇错误提示:“Emgu.CV.CvInvoke”的类型初始值设定项引发异常
(1)、注销或重启计算机,使得系统环境变量中的path生效;
(2)、通过path中设置的路径去寻找对应的dll文件,查看是否存在,是否被成功引用到VS中;
(3)、copy dll文件到debug和release目录中。
(4)、尝试将.Net FrameWork版本降低,如果是4.0的就降低到3.5,如果是3.5的就降低到2.0。
官方解决办法:
(1)安装时注意:
ou can run an AutoIt script that automates much of the process, including installing OpenCV if necessary, and lets you start developing with Visual Studio right away.
Emgu.CV.Example.sln
and build the solution. At
this point, you should be able to run the example programs.To use the framework in Visual Studio, you need to
For a Full guide to using the dependencies under Visual Studio and C# see the C# Tutorial.
Emgu.Utils.dll
and Emgu.CV.dll
to References of
the project. as well.
using Emgu.CV; using Emgu.CV.Structure;
Copy the OpenCV dll
files: opencv_calib3d{XXX}.dll
, opencv_contrib{XXX}.dll
, opencv_core{XXX}.dll
, opencv_features2d{XXX}.dll
, opencv_ffmpeg{XXX}.dll
,opencv_flann{XXX}.dll
, opencv_gpu{XXX}.dll
, opencv_highgui{XXX}.dll
, opencv_imgproc{XXX}.dll
, opencv_legacy{XXX}.dll
, opencv_ml{XXX}.dll
,opencv_objdetect{XXX}.dll
, opencv_video{XXX}.dll
and cvextern.dll
to
the execution directory, where {XXX}
is the OpenCV
version number.
If you see this exception, please check the following
cvXXX.dll, cvauxXXX.dll, cxcoreXXX.dll, highguiXXX.dll,
opencv_ffmpegXXX.dll,
mlXXX.dllcvextern.dll
where XXX
is the
OpenCV version number.opencv_calib3dXXX.dll, opencv_contribXXX.dll,
opencv_coreXXX.dll, opencv_features2dXXX.dll, opencv_highguiXXX.dll,
opencv_imgprocXXX.dll, opencv_legacyXXX.dll, opencv_mlXXX.dll,
opencv_objectdetectXXX.dll,
opencv_videoXXX.dll
where XXX
is the
OpenCV version number.cudart64_42_9.dll, cvextern.dll,
npp64_42_9.dll, opencv_calib3dXXX.dll, opencv_contribXXX.dll,
opencv_coreXXX.dll, opencv_features2dXXX.dll, opencv_flannXXX.dll,
opencv_highguiXXX.dll, opencv_imgprocXXX.dll, opencv_legacyXXX.dll,
opencv_mlXXX.dll, opencv_nonfreXXX.dll, opencv_objectdetectXXX.dll,
opencv_videoXXX.dll,
where XXX
is the
OpenCV version number.标签:com http blog code div img style size tar ext art
原文地址:http://www.cnblogs.com/Daywei/p/3694909.html