# FaceVerificationAndroid **Repository Path**: srx-coco/FaceVerificationAndroid ## Basic Information - **Project Name**: FaceVerificationAndroid - **Description**: Face verification with mxnet on android - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-10-08 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Face Verification on Android Face verification with mxnet on android ## Face Detection OpenCV has an in-built Viola-Jones face detector which is used here to detect faces. ## Face Verification I use pre-trained LightenedCNN as feature extractor. ![arch](http://img.blog.csdn.net/20161112165845008) For more information please read the original paper >https://arxiv.org/abs/1511.02683 My notes about this paper: [Lightened CNN](http://blog.csdn.net/tinyzhao/article/details/53127870) The similarity metric is cosine similarity. The threshold should be about 0.5 ,and it should be adjusted according to specific applications. ## Face Alignment I use VanillaCNN to detect facial landmarks. This step is crucial for high accuracy. The paper can be found below >http://www.openu.ac.il/home/hassner/projects/tcnn_landmarks/ My notes about this paper: [VanillaCNN](http://blog.csdn.net/tinyzhao/article/details/53559373) The original implementation is based on Caffe, and I have turned it into MXNet model.You can get more details from below: >https://github.com/flyingzhao/mxnet_VanillaCNN The face is aligned by three landmarks including two inter-ocular points and one mid-mouth point. Affine transformation is applied with these three points. ## MXNet [MXNet](http://mxnet.io/) is a great deep learning framework and can be used on Android efficiently and flexibly. I have compiled mxnet for android with ndk-r13b. You can also refer to my blog for more details. >http://blog.csdn.net/tinyzhao/article/details/53288102 You can also download compiled libmxnet_predict.so [here](https://github.com/flyingzhao/FaceVerificationAndroid/blob/master/app/src/main/jniLibs/armeabi/libmxnet_predict.so) ## Result I test on my Xiaomi 4C (Snapdragon 808) and I get about 1.5s per image.