Setting up Emgu CV and IronPython: Difference between revisions
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:
- Download IronPython Binary from its official web page http://www.codeplex.com/IronPython
- Extract the IronPython Binary to a folder
- Install OpenCV
- 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 *
- You are ready to go. The next step you might want to try is the Face Detection from IronPython example.