hiukim / mind-ar-js

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

is it possible to detect incompatible devices ☎️ with threejs version ? #427

Open LAGENCECREE opened 1 year ago

LAGENCECREE commented 1 year ago

I've been monitoring this amazing project for a long time, but I'll finally be able to propose it for a real-life project :))

however a quick question: ( i dont find the answer in the doc )

We know that with the variability of platforms, Mind-AR will not work in all situations, on all operating systems/browsers. The camera, sensors, or technologies used may not always be available. What does Mind-AR do in such cases?

did you dispatch a special event on incompatible devices with vanilla, threejs version ?

(https://cdn.jsdelivr.net/npm/mind-ar@1.2.2/dist/mindar-face-three.prod.js)

i mean an integrated method via feature detection instead of useragent techniques, to use like

like

xxx.addEventListener("DEVICE_INCOMPATIBILITY",  function(){
   window.location.href = "notcompatible.html";
});

how can we do this kind of detection , without testing on all smartphones of the earth ?

hiukim commented 5 months ago

It's definitely great to have such callback, but I don't think of any good solution.

There isn't really much "hard" requirements for mindar. Most failure cases is due to unknown/unforseen errors. For older devices, it might just not meet the requirements to have to reasonably smooth performance (soft fail).