EmguCV入门
- EmguCV入门 推荐度:
- 相关推荐
EmguCV入门
EmguCV入门
1. 简介
EmguCV即C#语言下的Opencv。Opencv中的函数经过封装,使得用C#语言编程时也可以很方便的调用。两者之前的对应关系可参见 EmguCV入门指南。2. 下载
官网下载: / 下载时要注意版本的选择,历史各版本的比较: .php/Main_Page 目前最新版本为libemgucv-windows-universal-cuda-2.9.0.1922-beta.exe,该版本与VS2012兼容。本人计算机上安装了两个版本的Emgu,一个是 libemgucv-windows-universal-cuda-2.9.0.1922-beta.exe,一个是 /libemgucv-windows-universal-gpu-2.4.9.1847.zip/download,均可以与VS2012一起很好的工作。3. 安装与配置 双击下载下来的exe可执行文件进行安装。记下安装路径,如本人安装在了C盘,则安装路径为C:\Emgu。安装完成后设置环境变量,在环境变量中添加路径C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin和C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin\x86
4. 添加引用 在VS中新建一个项目,在“引用”上右击,然后点击“添加引用”,打开引用管理器对话框。
点击上图中下方的浏览,在Emgu安装目录下找到bin文件夹,在此目录下选择"Emgu.CV.dll" , "Emgu.CV.ML.dll", "Emgu.CV.UI.dll", "Emgu.Util.dll" , "ZedGraph.dll" , 然后点击添加。在引用管理器中可以看到,刚才选择的几个文件已经出现在了引用管理器中,并且呈选中状态,再点击确定按钮即可。
5. 第一个例子Hello World! .php/Hello_World_in_CSharp
6. 添加ImgageBox
此部分转自 .php/Add_ImageBox_Control
Adding ImageBox Control in Visual Studio (Windows Form)
- Open your form in designer view. From Toolbox, right click in the empty space of 'General' column. This should pop up a selection menu, where 'Choose Items' selection is available, see below.
- Click on 'Choose Items', you will see a 'Choose Toolbox Item' Dialog, from where click the 'Browse..' button on the lower right corner of the dialog.
- Select 'Emgu.CV.UI.dll' file from 'Open' dialog, click the 'Open' button.
- Now you should notice the ImageBox control has been added to the 'Choose Toolbox Items' dialog. Click 'Ok'.
The ImageBox will be available from the 'General' column in the Toolbox area. Pull the control and drag it to the desired area on your form.
最新文章
- 移动互联网应用如何赚钱?
- 盘点2012:软件定义网络风生水起
- 什么是dubbo?
- SQL基础培训13
- 架设NFS服务器
- 基于emgucv的人脸检测及识别
- 不用的MacBook这样处理比较好
- 目标检测~总结
- 英文文本去停用词
- Linux服务器安装杀毒软件ClamAV
- 【Android开发】App消息中心构建
- 局部变量与成员变量的·区别!
- linux getopt命令,Linux中getopt函数用法
- 将列表(含字典)数据写入Excel
- 71个外贸工具集合!2023年外贸业务员开发客户必备!
- 推荐一款 Redis 可视化管理工具——Another Redis Desktop Manager
- 空间几何函数