Luxand MirrorReality SDK – Facial Feature Coordinates of the Mask

Each mask must include a .grd file that contains its facial feature coordinates. Masks included in MirrorReality SDK use the same .grd file. We recommend using this .grd file for your own masks as well. Therefore, if you create a new mask it must be aligned with the face in our mrsample.psd file. In this case, you do not need to edit the .grd file.

If you need to change some of your mask’s facial feature coordinates, you can edit the .grd file. Its structure is the following. The first line contains the number of facial features (points). Every next line contains the coordinates of the corresponding feature. If you need to change some coordinates, you can edit the corresponding line of the .grd file.

Mask facial feature coordinates should be matched with the corresponding facial feature coordinates (the default markup used in FaceSDK):

Please note that FaceSDK returns 70 facial features when detecting the facial features. Therefore, the custom .grd file must contain 70 facial features too.


Next chapterUsage Scenario



This site uses cookies to deliver our services and to help personalise and improve your experience. By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy. Your use of all Luxand's Products and Services is subject to these policies and terms.