dlib-android编译
来源:互联网 发布:js注释 提示 编辑:程序博客网 时间:2024/06/05 12:23
README.md
dlib-android
Purpose
Port dlib to Android 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 demonstrates dlib-android features
Grab the source
$ git clone --recursive https://github.com/tzutalin/dlib-android.git$ cd dlib-android$ ./envsetup
Prerequisites
Download Android-NDK from Android website.
After downloading, go to the directory to which you downloaded the package to extract it
Export ANDROID_NDK_HOME in ~/.bashrc
$ vim ~/.bashrc
export ANDROID_NDK_HOME=[NDK_PATH]/android-ndk-[version]
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
Prepare an Android device for test
Build JNI code and shared library for Android application
You can change the compiler architecture in dlib-android/jni/Application.mk
The way to build the shared library for Android application
$ cd [dlib-android] $ python build.py
Alternative way to build native code and copy to the Android Studio's project manually:
$ cd [dlib-android] $ ndk-build -j 2 $ cp -r libs/* androidstudio-examples/dlib-android-app/dlib/src/main/jniLibs
Run Android application
- Open Android Studio's projects in androidstudio-examples/dlib-android-app to run face detection, face landmark, and so on
Folder structure
├── data # Test data or the models for detection and landmarks├── dlib # Source files of dlib. It is a submodule├── jni # Source files of JNI codes and their make files├── androidstudio-examples # Android Studio's projects use the shared library built by this repo├── tools # Tools and utilities├── third_party # Like OpenCV and [miniglog](https://github.com/tzutalin/miniglog)├── CMakeLists.txt # Use CMake to build instead of using Android.mk├── LICENSE└── README.md
Do you want to contribute
- If you have any improvement or you've found any bug, send a pull request with the code.
- Give me a star on this repository
Future tasks
- Add more examples to dlib-android-app
- dlib-android编译
- dlib 18 android编译dlib库,运行matrix_ex demo
- 【dlib】Dlib编译安装
- ubuntu16.04编译dlib for Android
- dlib 编译安装(包含android版本)
- windows下编译dlib
- dlib的编译
- Dlib编译与搭建
- Dlib的编译
- dlib 01 dlib vs2015 编译 win10
- 移植dlib到android
- 移植dlib到android
- vs2008 dlib编译问题USER_ERROR__missing_dlib_all_source_cpp_file__OR__inconsistent_use_of_DEBUG_or_ENABLE
- dlib交叉编译到arm
- dlib编译出错以及解决方法
- 在android平台编译并使用dlib人脸识别库
- Android studio 2.3.3+Dlib
- windows编译mxnet,boost,dlib库
- servlet的转发(request.getRequestDispatcher().forward())
- Linux fcntl函数详解
- Java配置类获取properties文件
- CUDA学习笔记09: 深入理解CUDA的Warp
- 动态代理及反射在工厂模式上的应用
- dlib-android编译
- 希尔排序
- table表格
- 用QEMU模拟ARM
- 迎中秋庆国庆
- Deep Learning for Chatbots, Part 1 – Introduction
- 虚函数的简单用法
- 拦截器
- Android 4.4以上的新版本WebView