hiukim / mind-ar-js

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

Is it possible to change the detection target of a-scene dynamically #354

Closed Huangyh1122 closed 1 year ago

Huangyh1122 commented 1 year ago

I am trying to change the mind file for detecting different targets using JS, is there a way to change the value of " mindar-image="imageTargetSrc" for the element"a-scene"?

hiukim commented 1 year ago

Nope, you cannot change the targetSrc dynamically. mindar engine was initialized when a-scene started, and it will not re-initialize again when you change the src property