header photo

Level 0-EmguCV Installation Guide for 32-bit Windows users

June 8, 2011

LEARNING OBJECTIVE:


NOTE: FOR THOSE WHO USE 64-bit Windows
please FOLLOW THIS TUTORIAL INSTEAD

PART 1- SETUP THE REQUIRED TOOLS::

1. Make sure you have Visual Studio C# 2008 installed (any edition, I’ve used Visual C# 2008 Express Edition and Visual Studio 2008 and 2010 Professional Editions on my 32-bit Win 7 Ultimate. So far so good.)

2. Download Emgu CV installer. You could use any latest vesion but i can't guarantee that my tutorials will work cent per cent same on it too. select your desired version here, or follow with mine below, I used the following version:
libemgucv-windows-x86-2.2.1.1150.exe - Download it from here

3. Install Emgu CV to windows directory.( if you're using the same version as me, then copy-paste the following Path EXACTLY as in below fig, To avoid any incompatibility with my tutorials.):

C:\Emgu\emgucv-windows-x86 2.2.1.1150\     
   
note: 'emgucv-windows-x86 2.2.1.1150' is the name of the setup file. Depending on the version you're using, if it's different than mine, adjust it according to YOUR setup file name please)

Set Path of EmguCv at installation

 

PART 2- Run the Examples!--checking if we correctly configured our tools:

4. Go to the VS2008 folder in Emgu, path is as follows:
 C:\Emgu\emgucv2.2.1.1150\Solution\VS2008

and open Emgu.CV.Example.sln, (click OK to any error messages(if any) when they appear while trying to open the .sln, they're for Visual Basic files, C# files will load normally)

Note: before you run any example; you should first replace the missing reference files with their correct n current paths. The following explains how to:


A.Replace/add the path of project References:
4. When the Project solution is opened, first expand the project’s “References” from the “solution explorer” at right side of the IDE. Then Delete all the Emgu.CV.xxx.dll files in the reference if it has a yellow exclamation mark on it indicating that file is missing from path specified. REMEMBER which ones you deleted, because now we will add them.

    i. Right-click References and select "add reference"

    ii. Select the Browse tab
   
    iii. To add a .dll file, browse to where the required .dll files are located. For our tutorial, our required .dll files are in EmguCV’s bin folder at the following path:        C:\Emgu\emgucv2.2.1.1150\bin

     iv. Select the .dll file you want to add. Click ok. (you can select and add multiple .dll files at once by holding ctrl+click as shown in level-1 Tutorial)

The files should be added by now! see the Emgu.CV  and Emgu.Util under References where the red arrow is pointing in the Solution Explorer? that's it! :)

B. Build the solution:
5. OK so we’ve checked if our referenced dlls were missing and took care of the matter. Now let’s get down to our main point. That’s right! Let’s see the output already!
For that, Right-click the Solution 'Emgu.CV.Example' in the solution explorer and select Build solution. Then once it is built, click the debug button (green play button), now you should see a window with “hello world” pop up. I did. Maybe you will too if all went well so far :)



6. Congratulations! You just successfully configured your first EmguCV project!
After this is done, all the other EmguCV Examples are ready to be built and be debugged. They will be present at the following path C:\Emgu\emgucv2.2.1.1150\Emgu.CV.Example

--------------------------------------------------------------------------------------------------------------------------------------------------------------
IF YOU LIKE THIS TUTORIAL. PLEASE ENCOURAGE ME AND LEAVE A COMMENT BELOW :)

SEE YOU IN THE NEXT TUTORIAL :)

Please make more opencv tutorials

Comment Comment

I cannot run the example programs. there is always an error. i am using emgucv-windows-x86 2.3.0.1416 and visual studio 2010. can you please help me. tnx

Comment Comment

iam using Win7 64
and there is error due to this
is there any solotion instead of installing Win7 32

Comment Comment

A very impressive effort, all this work you have done presenting this stuff.
I like it !
Keep it up at a steady pace.

Comment Comment Comment Comment


Comment


This Free Website was created with the Bravenet Website Builder     Build your own Website for Free!