This is android application. It is VR application, it uses stream from camera, and change face in camera online. Here you can find examples how to work with camera, JNI, use machine learning libraries: opencv, dlib, how to work with OpenGL. Examples of result of working application you could see by video:
You should download trained shape predictor file from here or could trian it by yourself. Unzip it, rename it to sp68.dat and put in dir assets. This file is very large so I don't store on version control. Yes, it's bad, but I made simple bad solution. Make settings to submodule commonLib.
It uses my submodule here with all description of logic in it.