hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.19k stars 407 forks source link

Facemesh alignment fails if viewport is wide/landscape #216

Closed Trott closed 2 years ago

Trott commented 2 years ago

(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.

image

However, it is misaligned if the viewport is wide. Here is a screen with a 1036x504 viewport.

image

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.

hiukim commented 2 years ago

should be fixed v1.1.5