Haskell binding to OpenCV-3.x

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed and maintained by Roel van Dijk, Bas van Dijk

This is a Haskell library providing a binding to OpenCV-3.x. It binds directly with the C++ API using the inline-c Haskell library.

The library is far from complete but the framework is there to easily bind missing functionality.

Note that the OpenCV contrib modules are provided by opencv-extra.

Make sure to checkout the opencv-examples.

Changes - 2018-01-01


  • opencv now only builds on GHC >= 8.2. - 2017-11-06

  • Support OpenCV-3.3.x


  • OpenCV.Core.ArrayOps.perspectiveTransform
  • OpenCV.ImgProc.ImgFiltering.bilateralFilter


  • Specify the more accurate pkgconfig-depends: opencv >= 3.0.0 so that Cabal doesn’t use the wrong version..
  • Specify the more accurate setup-depends: Cabal >= 1.23 to prevent building with unsupported Cabals. - 2017-06-23


  • Fix test-suite by including missing data files. - 2017-06-20


  • OpenCV.Calib3d: findHomography.
  • OpenCV.Core.ArrayOps: hconcat, vconcat.
  • include/hsc_macros.hpp: #alignof macro.


  • Fix build on OS X.
  • Add source repo to cabal file.
  • Reference opencv-extra and the examples from the Cabal package description. - 2017-06-11

  • Initial version
comments powered byDisqus