Setting up Emgu CV and IronPython: Difference between revisions

From EMGU
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 11: Line 11:
* Copy Emgu.CV.dll, Emgu.Util.dll, ZedGraph.dll and zlib.net.dll to the same Folder
* Copy Emgu.CV.dll, Emgu.Util.dll, ZedGraph.dll and zlib.net.dll to the same Folder


* Copy EmguInit.py to the same Folder
* Copy EmguInit.py to the same Folder. The EmguInit.py contains the following code
<source lang="python">
import clr
clr.AddReferenceToFile("Emgu.CV.dll")
from Emgu.CV import *
from Emgu.CV.UI import *
from System import *
</source>


* Run the ipy.exe program. (On Mono, call "mono ipy.exe")  
* Run the ipy.exe program. (On Mono, call "mono ipy.exe")  

Revision as of 01:08, 31 October 2008

To use Emgu CV with IronPython, please follow the steps below:

  • Extract the IronPython Binary to a folder
  • Install OpenCV
    • On Windows, copy the required OpenCV 1.1 dlls to the same Folder, please remember to install MSVCRT 8.0 as well
    • On Linux, just install OpenCV package
  • Copy Emgu.CV.dll, Emgu.Util.dll, ZedGraph.dll and zlib.net.dll to the same Folder
  • Copy EmguInit.py to the same Folder. The EmguInit.py contains the following code
import clr
clr.AddReferenceToFile("Emgu.CV.dll")
from Emgu.CV import *
from Emgu.CV.UI import *
from System import *
  • Run the ipy.exe program. (On Mono, call "mono ipy.exe")
  • From the IronPython command line, run the following command:
import EmguInit
from EmguInit import *