Coder Social home page Coder Social logo

cyberneid / dlib-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radium226/dlib-java

0.0 0.0 0.0 1.15 MB

Java wrapper for the DLib library

License: GNU General Public License v3.0

C++ 20.80% Java 39.47% Makefile 14.27% Dockerfile 2.91% CMake 3.47% SWIG 13.11% Scala 5.98%

dlib-java's Introduction

dlib-java

Java wrapper for the DLib library

Layout

Overview

There is 3 projects:

  • resources: it provided the Resource abstraction which is used in order to load files (either from a JAR or from files)
  • models: it contains DLibModels and OpenCVModels which can be used in order to use models for these two libraries (some are embeded into the assembled JAR, some should be located on the filesystem)
  • dlib: it's the actual wrapper

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:

  • The include folder which contains the .h headers of the .cpp C++ files
  • The swig folder which contains the .i interfaces
  • The .cpp files which contains

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;
  • DLib;
  • And a few utilities (make, gcc, swig and wget).

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:

  • The /usr/lib/libopencv_java420.so shared libary is present;
  • The /usr/include/opencv4 includes are presents.

DLib

Once installed, you should ensure that:

  • The /usr/lib/libdlib.so shared library is present;
  • The /usr/include/dlib includes are presents.

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!

dlib-java's People

Contributors

radium226 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.