Git Product home page Git Product logo

dlib-android's Introduction

dlib-android

Purpose

  • Port dlib to Andriod platform

  • You can build it to dynamic or static library for Android. You can also build dlib's sample to Android executable file.

  • You can refer to dlib-android-app which demonstartes dlib-android features

Grab the source

$ cd ~
$ git clone --recursive https://github.com/tzutalin/dlib-android.git

Prerequisites

  • Download Android-NDK from Android website.

    After downloading, go to the directory to which you downloaded the package to extract it

    $ chmod a+x android-ndk-r10e-linux-x86_64.bin

    $ ./android-ndk-r10e-linux-x86_64.bin

    Export ANDROID_NDK_HOME in ~/.bashrc $ vim ~/.bashrc

    export ANDROID_NDK_HOME=[/to/your/path]/android-ndk-r10e

    export PATH=$PATH:$ANDROID_NDK_HOME

  • Install Android Debug Bride (ADB). You can download it via Android SDK Manager or $ sudo apt-get install android-tools-adb

  • [Optional] You can download a specific Android-OpenCV from http://opencv.org/downloads.html. Download the version and copy the folders in native SDK to dlib-android/opencv

  • Prepare a Android device for test

Build and Run

You can change the compiler architecture in dlib-android/jni/Application.mk

Build executable files and shared library, and push the executable files to Android devices.

$ cd [$dlib-android]

Run a test daemon sample on your arm devices
$ python build_push.py --test true

Copy the shared lib to your Android project
$ python build_push.py --android_project dlib-android-appliciton/dlib/src/main/jniLibs/

You can build only (Optional)

$ ndk-build -j 2

You can also try to build the libraray and Android app together using Android stduio

Please refer to dlib-anroid-app

Write JNI and build shared library for Android Java application

There are examples in jnilib_ex

There is a sample app to demonstrate the result. dlib-android-app

Do you want to contribute

If you have any improvement or you've found any bug, send a pull request with the code

###Notes:

You can also try to build the libraray and Android app together using Android stduio

Future task

dlib-android's People

Contributors

tzutalin avatar

Watchers

PeanoRen 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.