Wednesday, 13 April 2016

Setting Up EmguCV for Unity3D

In this we will see how to set up Emgucv for Unity3D

I am using

  • Unity3D 5.3.3 personal edition
  • EmguCv - emgucv-windesktop 3.1.0.2282.exe

download link : https://sourceforge.net/projects/emgucv/

Getting Started


  1. Download and run the emgucv-windows setup exe. It will create a folder in C drive named as Emgu
  2. Fire up Unity3D and create a new project.
  3. Go to C:\Emgu\emgucv-windesktop 3.1.0.2282\bin  folder and copy all the .dll files including some .dll files from the folder x64( if you are using a 32bit or copy the files from x86 if you working on a 64bit)
  4. Now open the new unity project folder which you have created.
  5. Then open the Assets folder under new project and paste all the copied .dll files.
  6. Now browse the folder where you have installed unity3D normally it should be under C:\Program Files\
  7. Under this search for the file System.Drawing.dll. Copy this file and paste it along with the other .dll files under NewProject>>Assets folder
  8. You need to add EmguCv path to System Environment Variables(Create a new system variable and also add the X64 directory under path variable too something similar to this ";Emgu\emgucv-windesktop 3.1.0.2282\x64")

  9. That's it EmguCv is now setup for Unity3D. You can start playing around.


1 comment:

  1. Hi! Hope you will be doing good.
    Thanks for such a great tutorial.I am following this tutorial using Emgucv (emgucv-windesktop 3.4.3.3016) but encountering the following error. Your help will be appreciated.

    ERROR:
    Unloading broken assembly Assets/Emgu.CV.UI.GL.dll, this assembly can cause crashes in the runtime

    ReplyDelete