3D avatar via camera automatically

Hello

Now I am investigating if I can implement my idea.
The startup point is to confirm that I can make 3D avatar(face model, textures) via camera automatically.
e.g. https://www.youtube.com/watch?v=4P7wnrLouqI

If anyone knows the solution, kindly I would like you to explain or give me any link.

Hope to hear from you as soon as possible.
Cheers.