hiukim / mind-ar-js

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

How is targetIndex affecting in multi-targeting? // Problems with recognising targets in multi-targeting #365

Closed jessicachrist closed 1 year ago

jessicachrist commented 1 year ago

I've been developing a WebAR application with React and A-Frame and I have stumbled across some problems with multi-targeting:

There are various targets (on a physical paper), such as a large lake, a bank and a house near the lake. The lake has mindar-image-target="targetIndex: 0", so as I understand it, it should be weighted higher (= recognised before other markers) than the bank (targetIndex 1) and the house (targetIndex 2). However, if you try to scan the lake from a distance, in the vast majority of cases the bank, which is right next to the lake, is recognised as the marker and not the lake (this also happens if we reduce the marker from the big lake to just one smaller marker in the middle of the lake). So does the targetIndex have no influence on which marker is "higher rated" = firstly recognised?

@hiukim How do you handle different targets that are close to each other or partly maybe even overlapping in multi-targeting?

Has anyone else also experienced similar problems with multi-targeting?

Thank you in advance.

jessicachrist commented 1 year ago

-

hiukim commented 1 year ago

There is no priority on the targetIndex. It's pretty arbitrary I would say.