Luxand - Luxand MirrorReality SDK – Usage Scenario

Luxand MirrorReality SDK – Usage Scenario

1. Create an OpenGL textures array containing three elements: one for the original video frames and two for two mask files.

2. Load mask facial feature coordinates from the .grd file using the MR_LoadMaskCoordsFromFile function.

3. Load mask layers from .png files to the internal handles using the FSDK_LoadImageFromFileWithAlpha function. If one of the .png files is missing, then an empty internal handle for this file must be created using the FSDK_CreateEmptyImage function.

4. Load mask layers to the OpenGL textures using the MR_LoadMaskCoordsFromFile function.

5. Detect faces and facial features on the camera frames using FaceSDK Tracker API functions (FSDK_FeedFrame and FSDK_GetTrackerFacialFeatures).

6. Add the mask to detected faces and display it on the screen using the MR_DrawGLScene function.

The FSDK_LoadImageFromFileWithAlpha, FSDK_CreateEmptyImage, FSDK_FeedFrame, and FSDK_GetTrackerFacialFeatures functions are Luxand FaceSDK functions. FaceSDK documentation is available here: luxand.com/facesdk/documentation.

 

Next chapterMirrorReality SDK Functions

Contents

×

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.