FLANDMARK Demo

Contains Ads

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
Read more
4.0
17 total
512
4
31
21
13
Loading...

Additional Information

Updated
July 7, 2015
Size
27M
Installs
1,000+
Current Version
1.1
Requires Android
4.0 and up
Content Rating
Everyone
Permissions
Offered By
f11labz
©2018 GoogleSite Terms of ServicePrivacyDevelopersArtistsAbout Google
By purchasing this item, you are transacting with Google Payments and agreeing to the Google Payments Terms of Service and Privacy Notice.