radium226 / dlib-java

Java wrapper for the DLib library
GNU General Public License v3.0
13 stars 14 forks source link
dlib java

dlib-java

Java wrapper for the DLib library

Layout

Overview

There is 3 projects:

The dlib project

It's recommended using SWIG in order to make binding (at least in Java).

In the src/main/native folder, you'll find:

Requirements

Overview

Building the dlib-java wrapper is quite simple (because it's driven by Maven), but there is some requirements which need to be fulfilled.

You'll need to install:

OpenCV

Once OpenCV has been installed on you're system, we need to make the JAR availabled to Maven by running:

mvn install:install-file \
    -Dfile=/usr/share/java/opencv4/opencv-420.jar" \
    -DgroupId="opencv" \
    -DartifactId="opencv" \
    -Dversion="4.2.0" \
    -Dpackaging="jar"

We also should ensure that:

DLib

Once installed, you should ensure that:

Installing

The JAR can be installed in your local Maven repository using make install. It may take some time: it will compile OpenCV and DLib... So be ready to wait some time!