Download And Installation: Difference between revisions

From EMGU
Jump to navigation Jump to search
Line 36: Line 36:
*Create a new Visual Studio project or use an existing one
*Create a new Visual Studio project or use an existing one
*Add the 3 files <code>zlib.net.dll</code>, <code>Emgu.Utils.dll</code> and <code>Emgu.CV.dll</code> to ''References'' of the project
*Add the 3 files <code>zlib.net.dll</code>, <code>Emgu.Utils.dll</code> and <code>Emgu.CV.dll</code> to ''References'' of the project
*Copy the [[OpenCV]] dll files: <code>cv110.dll</code>, <code>cvaux110.dll</code>, <code>cxcore110.dll</code>, <code>cxts001.dll</code>, <code>highgui110.dll</code>, <code>ffopencv110.dll</code> and <code>ml110.dll</code> to the execution directory.
*Copy the [[OpenCV]] dll files: <code>cv110.dll</code>, <code>cvaux110.dll</code>, <code>cxcore110.dll</code>, <code>highgui110.dll</code>, <code>ffopencv110.dll</code> and <code>ml110.dll</code> to the execution directory.
*Optionally put the following line  
*Optionally put the following line  
<code>
<code>

Revision as of 16:11, 29 April 2009

Getting the Source

  • Follow this link to the file server on Source Forge.
  • The source files are contained in the package Emgu.CV.SourceAndExamples-{version}.zip

Getting the Dependency

Windows

  • Emgu CV use WCF(Windows Communication Foundation) therefore requires .Net 3.0
  • For Windows, OpenCV 1.1pre, zlib.net and ZedGraph Dlls are included in Emgu.CV.Windows.Binary-{version}.zip

Linux

  • To run Emgu CV on linux, you need OpenCV version >= 1.0.0. On Fedora 10, you can install the dependency by running yum install opencv as root
  • Mono
    • You need Mono >= 2.2. If you need to compile Emgu CV from source, do NOT use gmcs 2.0.0 / 2.0.1, there is a bug in these two versions.
    • Emgu CV library use WCF (Windows Communication Fundation) and therefore also requires mono-extra.
    • You can install both by running yum install mono-core mono-extra as root. (Please enable rawhide repository in order to get Mono >= 2.2)
  • For Linux, zlib.net dll is included in Emgu.CV.Linux.Binary-{version}.tar.gz

Getting the Binary

Follow this link to access the file server on Source Forge.

Windows

  • The binary files for Windows are included in the package Emgu.CV.Windows.Binary-{version}.zip
  • They are compiled from source on Windows using MsBuild

Linux

  • The binary files for Linux are included in the package Emgu.CV.Linux.Binary-{version}.tar.gz
  • They are compiled from source in Fedora 9 using mono-1.9.1 with flag LINUX

Creating Your Project

Visual Studio

To use the framework in Visual Studio, you need to

  • Create a new Visual Studio project or use an existing one
  • Add the 3 files zlib.net.dll, Emgu.Utils.dll and Emgu.CV.dll to References of the project
  • Copy the OpenCV dll files: cv110.dll, cvaux110.dll, cxcore110.dll, highgui110.dll, ffopencv110.dll and ml110.dll to the execution directory.
  • Optionally put the following line

using Emgu.CV;

in the top of your code to include the Emgu.CV namespace.