Skip to content

Instantly share code, notes, and snippets.

@eciavatta
Last active October 28, 2019 18:03
Show Gist options
  • Save eciavatta/b402b1c3a64d32df563d09c26ed39567 to your computer and use it in GitHub Desktop.
Save eciavatta/b402b1c3a64d32df563d09c26ed39567 to your computer and use it in GitHub Desktop.

Use Emgu CV, the OpenCV wrapper, in Ubuntu 18

The version of the compiled shared library is 3.4.1. The wrapper is compiled without GTK+ 3.0, therefore all the features of OpenCV that use this graphic library are not working. This is due to the fact that the Windows Forms in Mono have GTK+ 2 as dependency, which is not compatible with the third version.

Installation

  1. Download the compiled version of Emgu CV shared library from https://www.dropbox.com/s/6h39g9bq2bl3rxj/libcvextern-3.4.1.zip?dl=0
  2. Extract the archive and put libcvextern.so in the /usr/lib directory
  3. Set root as the owner of the library with sudo chown root:root /usr/lib/libcvextern.so (Optional)

Usage

To compile a .NET application using Emgu CV add Emgu.CV.World.dll and Emgu.CV.UI.dll to the references of the project. Before running the application copy the two dlls in the directory of the binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment