This is an experimental Haskell framework for fast prototyping of computer vision and image processing applications. We take advantage of the expressive power of functional programming to write elegant programs supported by standard low level specialized libraries.
-
Tutorial (in construction)
-
There is an early approach by the Yale Haskell Group.
-
Computer Vision packages by Noam Lewis and Ville Tirronen in Hackage.
(Tested on Ubuntu 12.04)
-
Get the source code:
$ git clone git://github.com/albertoruiz/easyVision.git
Checkout the reorg branch:
$ git checkout reorg
-
Install IPP. You can download the noncomercial version 7.1 for Linux (go to the link "Intel Integrated Performance Primitives (Intel IPP) 7.1 for Linux")
http://software.intel.com/en-us/articles/non-commercial-software-download/
Install using sudo in the default location.
-
Add the following environment variables to
~/.bashrc
:export IPP_INC=/opt/intel/composerxe/ipp/include export IPP_SHARED="/opt/intel/ipp/lib/ia32/:/opt/intel/lib/ia32/" export IPP_LIBS="ippcore ippi ipps ippcc ippvc ippcv iomp5" export IPP_LINK=-pthread export EASYVISION=/your/path/to/easyVision/ export LD_LIBRARY_PATH=$IPP_SHARED:$EASYVISION/lib/lib32
Modify as required to make sure that the IPP .h headers are in IPP_INC and the corresponding .so libs are in IPP_SHARED.
Continue installation in a new terminal.
-
Install the Haskell Platform:
$ sudo apt-get install haskell-platform $ cabal update
Note that this branch works better with GHC 7.6.3. The official binary package is available from:
https://www.haskell.org/ghc/download_ghc_7_6_3#x86linux $ ./configure --prefix=/path/to/desired/location/of/ghc7.6.3 $ ./make install
Change the path in .bashrc so this ghc is used instead of the ghc supplied by the Haskell Platform and continue the installation in a new terminal.
-
Install the required libraries:
$ sudo apt-get install libgsl0-dev libatlas-base-dev libglpk-dev $ sudo apt-get install mplayer mencoder imagemagick
-
Install optional libraries:
OPENCV:
$ sudo apt-get install libcv-dev libcvaux-dev libhighgui-dev
SIFTGPU:
$ sudo apt-get install nvidia-current nvidia-cg-toolkit libdevil-dev g++
tesseract:
$ sudo apt-get install tesseract-ocr-dev
zbar:
$ sudo apt-get install libzbar-dev
-
Install the Haskell packages:
$ cd easyVision/packages $ make
The basic system will be correctly installed if "hVision-0.3.0" is shown by
$ ghc-pkg list
-
Run the demos:
$ cd ../projects/demos $ make $ make demo
-
Read the tutorial.
-
Enjoy!