About FLANDMARK Demo
One of the fundamental requirements for successful face recognition is to reduce the environmental noise from the pictures.
Scaling and aligning pictures before it is send for training and recognition using any of the Open CV’s recognition classes will
improve the overall accuracy .
I found a very nice example online that is written in C++ for aligning the faces
http://answers.opencv.org/question/24670/how-can-i-align-face-images/
The basic theory is that using flandmark the position of the eyes is calculated . Next the angle of rotation has to be calculated from the desired final alignment .
This is done by using linear regression , then the image is rotated and saved.
I wanted to try this in android and found that Java CV has made the Java bindings for Flandmark (for Java CV and Open CV own’s Java bindings check here http://blog.f11labz.com/using-open-cv-with-java/ ). It was just the matter of
converting the c++ code to java and trying it out in android. The result is pretty decent , some tweaking of size and parameters could be required.
You can download the code here.
https://dl.dropboxusercontent.com/u/54598139/FlandmarkDemo.zip
To build the code you will have to download open CV for android from here.
http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.11/OpenCV-2.4.11-android-sdk.zip/download
Download and install
FLANDMARK Demo version 1.1 on your
Android device!
Downloaded 1,000+ times, content rating: Everyone
Android package:
com.f11.flandmark, download FLANDMARK Demo.apk