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

Get in touch

Luxand, Inc.
815 N. Royal St. Suite 202
Alexandria, VA
22314
USA
Freephone:
+1 800 471 5636

Join our newsletter

And always stay informed of the latest company news and events!

Sign up >>

DMCA.com Protection Status