All Projects → Luca96 → dlib-for-android

Luca96 / dlib-for-android

Licence: MIT License
Compile and embed Dlib in your Android projects with ease.

Programming Languages

powershell
5483 projects
shell
77523 projects

Projects that are alternatives of or similar to dlib-for-android

Face Swap Android
Realtime Face Swap Android NDK app full source code. Developed with OpenCV (http://opencv.org) and Dlib C++ (http://dlib.net).
Stars: ✭ 111 (+236.36%)
Mutual labels:  dlib, android-ndk
facial-landmarks
Facial landmarks detection with OpenCV, Dlib, DNN
Stars: ✭ 25 (-24.24%)
Mutual labels:  dlib
face-rec-tools
Media library face recognition tools
Stars: ✭ 14 (-57.58%)
Mutual labels:  dlib
GTKAndroid
GTK+Android
Stars: ✭ 73 (+121.21%)
Mutual labels:  android-ndk
gooid
Go bindings for Android NDK
Stars: ✭ 48 (+45.45%)
Mutual labels:  android-ndk
ixm
Make CMake less painful when trying to write Modern Flexible CMake
Stars: ✭ 99 (+200%)
Mutual labels:  cmake-scripts
AstroAdventures-Android
A mini-game for Android like Space Invaders, where the entire game engine has been written from scratch, in Kotlin. And every visual asset in the game is drawn with code, using Android Custom Views.
Stars: ✭ 50 (+51.52%)
Mutual labels:  android-native
simple faceswap
使用python-opencv和dlib实现的简单换脸程序
Stars: ✭ 50 (+51.52%)
Mutual labels:  dlib
Face-Morphing
👯‍♀️ We are more alike than different - morphing one face to another
Stars: ✭ 66 (+100%)
Mutual labels:  dlib
avatar-facial-landmark-detection
A method about optimizing the facial landmark detection based on Kalman Filter, Optical Flow and Dlib
Stars: ✭ 87 (+163.64%)
Mutual labels:  dlib
dlib-minified-models
A set of minified (but still accurate) models for Dlib
Stars: ✭ 61 (+84.85%)
Mutual labels:  dlib
vatsinator-legacy
An open-source Vatsim monitor
Stars: ✭ 12 (-63.64%)
Mutual labels:  cmake-scripts
native-libandroidthings
NDK library for exposing Peripheral I/O APIs in C/C++
Stars: ✭ 28 (-15.15%)
Mutual labels:  android-ndk
Inimesed
An Android app that lets you search your contacts by voice. Internet not required. Based on Pocketsphinx. Uses Estonian acoustic models.
Stars: ✭ 65 (+96.97%)
Mutual labels:  android-ndk
AverageFaceDemo
Average face on android
Stars: ✭ 31 (-6.06%)
Mutual labels:  dlib
PSGAN-NCNN
PSGAN running with ncnn⚡妆容迁移/仿妆⚡Imitation Makeup/Makeup Transfer⚡
Stars: ✭ 140 (+324.24%)
Mutual labels:  dlib
GreatCMakeCookOff
Bunch of CMake pain in the baker
Stars: ✭ 38 (+15.15%)
Mutual labels:  cmake-scripts
android-face-landmarks
Android app that localizes facial landmarks in nearly real-time
Stars: ✭ 62 (+87.88%)
Mutual labels:  dlib
facenet-darknet-inference
Face recognition using facenet
Stars: ✭ 29 (-12.12%)
Mutual labels:  dlib
edge-tpu-servers
Object and face recognition using Google's edge TPU
Stars: ✭ 37 (+12.12%)
Mutual labels:  dlib

Dlib-for-Android

Compile and embed Dlib (and, optionally OpenCV) in your Android projects with ease.

Prerequisites

From AndroidStudio at tool > SDK Manager > SDK Tools install:

  • LLDB
  • CMake
  • NDK.

Usage

  1. Clone the repo recursively (to download Dlib).
  2. Create an Android project with c++11 support.
  3. Edit the setup.sh (Linux user) or setup.ps1 (Windows user) script:
    • Replace AndroidCmake variable with the path to your Android CMake excutable (is usually inside the android sdk folder).
    • Replace NDK variable with the path to your Android NDK (ndk-bundle).
    • Replace TOOLCHAIN variable with the path to your android.toolchain.cmake.
    • Select the ABIs you want to support among: armeabi-v7a, arm64-v8a, x86 and x86_64.
    • Edit the MIN_SDK value, the minimum supported is 16.
    • Set the PROJECT_PATH variable according to your Android project path.
  4. Launch the script and wait until completion (comment what you don't need!). It will:
    • Compile Dlib for multiple ABI,
    • Copy the Dlib headers and libdlib.so to your project,
    • Copy the lib_opencv4.so to your project.
  5. Edit your CMakeLists like this one.
  6. Update your build.gradle (app) file in order to support CMake example.
  7. Build and Enjoy!

A complete tutorial is available here.

Examples

On my github you can find here, a complete Android application that uses Dlib and OpenCV 4.

Prebuilt library

Inside the folder prebuilt you can find a set of ready-to-use libdlib.so, compiled from Dlib 19.16 source code.

The .so are built for the ABIs: armeabi-v7a, arm64-v8a, x86 and x86_64; with a 16 as min-sdk.

Troubleshooting

For Windows users: If the PowerShell complains about the script you can try this:

1. Open the Windows PowerShell
2. Move to the script location
3. type and execute: powershell -ExecutionPolicy ByPass -File setup.ps1

Warning

Bash script NOT TESTED!!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].