如何使用EmguCV(C#中的OpenCV)? [英] How to use EmguCV (OpenCV in C#)?

查看:103
本文介绍了如何使用EmguCV(C#中的OpenCV)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白要使EmguCV正常工作必须安装什么.我打开了EmguCV随附的sample-src,但是在Visual Studio 2008中出现错误.

I don't understand what I have to install to make EmguCV work.I opened the sample-src provided with EmguCV ,but I get errors in Visual studio 2008.

我还为OpenCV尝试了其他.NET包装器,但没有一个起作用(包括示例).运行任何使用OpenCV的程序后,显示一条消息((示例程序)遇到问题,需要关闭.请将此错误报告给Microsoft bla bla bla.").

I also tried other .NET wrappers for OpenCV,but none of them worked(including the examples). A message "(sample program) has encounted a problem and needs to close.Please report this error to microsoft bla bla bla" is shown after I run any program that uses the OpenCV.

如何使用C#进行这项工作?

How to make this work in C#?

推荐答案

是否已安装所有必需的.dll?尝试将所有Emgu .dll复制到包含.exe的目录中.

Are all the required .dlls in place? Try copying all the Emgu .dlls to the directory containing the .exe.

要自动执行此操作,我在Visual Studio中添加了一个构建后事件:

To automate this I added a post-build event in Visual Studio:

xcopy /Y /D /F $(ProjectDir)Emgu.CV.Binary-2.0.1.0\*.dll $(TargetDir)

您需要设置正确的源目录(我希望将自己的库与源一起保存).

You need to set the correct source directory (I like to keep my libs along with the sources).

这篇关于如何使用EmguCV(C#中的OpenCV)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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