I hacked up the example script for face-api.js to forward the data to my Python/Pygame script. Then I did some trig and other math things to get a very rough estimate of facial rotation based on facial landmarks (from face-api.js) so that I could map it to a cube. \o/
(face-api.js uses machine learning to place facial landmarks)
Discord:
/ discord
My Projects:
https://dafluffypotato.com/projects
Patreon:
/ dafluffypotato
Potato Tier Patrons:
Keill
NingNangNongy
eivl
#python #faceapi #nodejs