hiukim / mind-ar-js

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

How to trigger targetFound again after unpause or stop? #87

Closed szyuan closed 2 years ago

szyuan commented 2 years ago

expect: video feeding -> targetFound -> pause -> [environment remains unchanged]-> unpause -> targetFound

current situation: After unpause, the targetFound never triggered until i move the target outside the camera to trigger targetLost event.

attempt:

  1. i called arSystem.stop and arSystem.start(),the .mind file was reloaded, but the targetFound won't be triggered.
  2. i usedjQuery.trigger to trigger targetFound from outside after unpause, didn't work....
hiukim commented 2 years ago

Your use case seems pretty tricky. I'm not sure a targetFound event firing after unpause should be the expected behaviour.