hiukim / mind-ar-js

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

Ocluder does not transform #525

Open squareclouds opened 1 month ago

squareclouds commented 1 month ago

Hello and thanks for the library!

somehow I am having issues with the transformations of the ocluder for face recognition.

for instance position="1 1 1" rotation="0 0 0" scale="0.1 0.1 0.1"

if i remove the attribute "mindar-face-occluder" i can see the head and the transformations work. so after i position and scale it how I need it, i then re-add the "mindar-face-occluder" attribute and the head ignores the transformations. I can enter position="9 1 1" and it remains in the same location. if i remove the attribute again I can see that the head flew way out of the way. any ideas?

squareclouds commented 1 month ago

PS: i just removed the head model

<a-entity mindar-face-target="anchorIndex: 168">
        <a-gltf-model mindar-face-occluder position="1 1 1" rotation="0 0 0" scale="0.1 0.1 0.1" src="#headModel"></a-gltf-model>
</a-entity>

and still something is oclusing the hat! maybe that is the main problem?