hiukim / mind-ar-js

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

lag in facemesh AR #324

Closed 0xhrsh closed 1 year ago

0xhrsh commented 1 year ago

I'm trying to create an AR scene with threejs facemesh, but there is quite some lag in it, here's a deployed example.

am I doing something wrong or is this as good as it gets?

0xhrsh commented 1 year ago

cc: @hiukim

hiukim commented 1 year ago

Is the official demo lag for you? https://hiukim.github.io/mind-ar-js-doc/face-tracking-samples/three-facemesh.html

0xhrsh commented 1 year ago

Yes

On Sun, Dec 25, 2022, 12:43 PM HiuKim Yuen @.***> wrote:

Is the official demo lag for you? https://hiukim.github.io/mind-ar-js-doc/face-tracking-samples/three-facemesh.html

— Reply to this email directly, view it on GitHub https://github.com/hiukim/mind-ar-js/issues/324#issuecomment-1364637216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPWPUFRFWPVBUHEDVUGUKTWO7X2TANCNFSM6AAAAAATH2RF3A . You are receiving this because you authored the thread.Message ID: @.***>

hiukim commented 1 year ago

Then you haven't done anything wrong.

nosy-b commented 3 months ago

It does lag a bit yes (on a super powerful computer) so I guess there is some motion stability parameters that we could tweek so it feels more reactive? thanks!

nosy-b commented 3 months ago

@0xhrsh It is indeed just that :) const mindarThree = new MindARThree({ container: document.querySelector("#container"), filterMinCF: 0.1, filterBeta: 0.1, });