....although you can use the MindAR facemesh demo code too as long as you have a wide viewport.
When the viewport is narrow relative to height, it works great. Here is a screenshot with a 914x865 viewport.
However, it is misaligned if the viewport is wide. Here is a screen with a 1036x504 viewport.
I am able to replicate this problem even with the MindAR demo code. A simple way to see it is to use the MindAR facemesh demo when your phone is in landscape.
(Taking the Udemy course and it's super helpful. Thanks for that!)
Here's a live demo of issue: https://trott.github.io/homestar-facetracking/pompomface.html
....although you can use the MindAR facemesh demo code too as long as you have a wide viewport.
When the viewport is narrow relative to height, it works great. Here is a screenshot with a 914x865 viewport.
However, it is misaligned if the viewport is wide. Here is a screen with a 1036x504 viewport.
I am able to replicate this problem even with the MindAR demo code. A simple way to see it is to use the MindAR facemesh demo when your phone is in landscape.