Getting Started with F# and OpenCV
I am using Windows 10 Pro x64 so some dependencies may differ.
Getting and Building Emgu CV
-
Download and install Visual Studio Community 2015 (already installed on my system)
-
Download and install MSVCRT 9.0 SP1 (x64, or x86) (x64 is already installed on my system) http://www.microsoft.com/en-us/download/details.aspx?id=13523
-
Download libemgucv-windows-universal-3.0.0.2157.zip http://sourceforge.net/projects/emgucv/files/emgucv/3.0.0/libemgucv-windows-universal-3.0.0.2157.zip/download
-
Extract contents of libemgucv-windows-universal-3.0.0.2157.zip to a folder (replace with $EmgCVPath further down) e.g. Extract to c:\emgucv-3.0\
-
Build solution "$EmgCVPath\Solution\VS2010-2015\Emgu.CV.sln" in Visual Studio Community 2015 in Release mode. This will produce binaries in $EmguCVPath\bin
Creating a New Project with Build Artefacts
-
Create new F# library project using Visual Studio
-
Right click references in project and click Add Reference ...
-
Add Emgu.Util.dll and Emgu.CV.dll from $EmgCVPath\bin
-
Add the following to any classes with which you wish to use the Emgu CV library with
open Emgu.CV;
open Emgu.CV.Structure;
If you see no IntelliSense errors then that suggests the correct references are being picked up.