WYSIWYG

http://kufli.blogspot.com
http://github.com/karthik20522

Sunday, January 15, 2012

Face.com human readable Data

Face.com is without any doubt one of the best Face detection API out there. Considering the fact that Face.com provides 5000 request per hour is quite a good API access for a small or personal project. But unfortunately not all Data provided by face.com is human readable. Following is an example of face.com api result



All the data that face.com provides is a percentage relation with the height and width of the image. This is very advantageous since even if we resize the image, the percentage of the face on the image would remain excatly the same and the same place on the image. Offcourse while resizing the image, the aspect ratio must be maintained. Besides the coordinates of eye, mouth and nose there are other values like size of head (width, hight) and yaw, roll and pitch. Lets say you are building an application to identify if the person in the face is facing the camera or to check if the image is a potrait image or a full body shot, face.com doesn’t provide these information as words but rather as numbers. Following is a translation of the obove numbers into more human readable words:

For determining the angle of the face:



For determining if the image is a portrait image:



Note: above calculations are based on my opinion of the image based on trail and error.

Other attributes that Face.com provides (more human readable) are as follows:

Labels: