17app android,GitHub - shiwei17/FaceRecognitionApp: Face Recognition Android App

Face Recognition Android App

b689418020732e1cc707e72e0cde59a1.png

Developed by Kristian Lauszus, 2016

The code is released under the GNU General Public License.

68747470733a2f2f7472617669732d63692e6f72672f4c6175737a75732f466163655265636f676e6974696f6e4170702e7376673f6272616e63683d6d6173746572

This project demonstrates how to calculate Eigenfaces and Fisherfaces used for face recognition on an Android device.

The library uses my other project FaceRecognitionLib in order to calculate the Eigenfaces and Fisherfaces.

The reports I wrote together with Jonathan Wang can be found at the following links: Eigenfaces_Report.pdf and Final_Project_Report.pdf.

Screenshots

eb7b1ee1368dce6c51a731865abc48ca.png128847d80208d319b044691849b8063d.pngc13a935472cf09bbaaf2b53a2822c86e.png

Build instructions

In order to built this project you need to download and install Android Studio. You will then need to install the Android NDK.

Advanced build instructions

The following instructions are meant for advanced users who wants to clone and modify the source files.

First clone the repository including the submodule:

git clone --recursive https://github.com/Lauszus/FaceRecognitionApp.git

If you have already cloned the project, then please run the following command in order to initialize the submodule:

git submodule update --init --recursive

The project is relying on the environmental variables OPENCV_ANDROID_SDK and EIGEN3_DIR in Android.mk to be set to the path of the OpenCV Android SDK and Eigen3 libraries.

Please use OpenCV 3.4.1 and Eigen3 3.3.4. Both can be installed from the command line like so:

wget https://github.com/opencv/opencv/releases/download/3.4.1/opencv-3.4.1-android-sdk.zip

unzip opencv-3.4.1-android-sdk.zip

wget https://bitbucket.org/eigen/eigen/get/3.3.4.zip -O Eigen3.zip

unzip Eigen3.zip

Now simple set the environmental variables:

Linux:

nano ~/.bash_profile

export OPENCV_ANDROID_SDK=/path/to/OpenCV-android-sdk

export EIGEN3_DIR=/path/to/eigen3

echo $OPENCV_ANDROID_SDK $EIGEN3_DIR

Mac:

nano /etc/launchd.conf

setenv OPENCV_ANDROID_SDK /path/to/OpenCV-android-sdk

setenv EIGEN3_DIR /path/to/eigen3

echo $OPENCV_ANDROID_SDK $EIGEN3_DIR

Windows:

setx OPENCV_ANDROID_SDK /path/to/OpenCV-android-sdk

setx EIGEN3_DIR /path/to/eigen3

echo %OPENCV_ANDROID_SDK% %EIGEN3_DIR%

Please note that /path/to/ should be replaced with the actual path to the Eigen and OpenCV Android SDK directories.

If you have troubles setting the environmental variables, then you can just hardcode the paths in Android.mk.

For more information send me an email at lauszus@gmail.com.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值