In this video i showcase how I figured out how to use face tracking with the machine learning library tensorflow to create a unique 3d effect. I try out a proof of concept 3D cube that rotates to the estimated viewing angle. I also try out using it in my Minecraft clone where the face position changes the position of the camera for a very cool effect.
Code for video: https://github.com/danba340/facetrack...
In minecraft: https://github.com/danba340/minecraft...
Twitter: / barelydaniel
Github: https://github.com/danba340
Instagram: / barelycoding
TikTok: / barelycoding
0:00 Overview
02:00 Facetracking
03:30 FacePosition component
07:30 3D component
10:50 Render optimization
12:00 The fun stuff!