Android - ARCore - Slow Image Tracking and Jittering
Hi, I'm developing an app that is gonna be used on both platforms (iOS and Android), so I need to use AR Foundation. When I build my iOS version, everything works fine, the tracking is very fast and precise, but when I run the Android version, the tracking gets very slow, it takes like 10-20 seconds to detect an image (and the camera has to be less than 10cm away). Besides that, when the camera finally detects the image the instantiated prefab becomes unstable and does not follow the image transform correctly.
I've tested it on all versions of AR Foundation and ARCore XR Plugin and yet the problem persists.
Does anyone know how to solve this? Or will I have to create another project using the ARCore SDK instead of ARFoundation?
I noticed that ARCore rendering lags behind actual movement and rotation of the camera after ARCore version 1.9 when using image tracking. But it detects my image targets pretty fast. Make sure your image targets has enough contrast features, I haven't encountered any noticable difference between ios and android detection speed.
I used the targets that came with these samples. Now I'm using ARCore SDK and it works fine, the problem is that I'll have to create 2 separate projects, one using AR Foundation (for iOS) and the other using ARCore (for Android).
Besides the fact that the tracking is slow, it gets a little unstable too...
We haven't noticed this. Image detect is fast and stable. What device(s) are you testing with?
Xiaomi Pocophone F1 and Motorola Moto G7 Plus
Hi, did you succeed with solving the lag problem? I experience this too (OnePlus 6) - the difference can be noticed with bare eye: when I don't configure the session with image DB (or even specify a DB that has no images), there is no lag. When image DB is not empty, the lag is present. Setting DB to null at runtime (after the image was found and anchor created) does not help - the lag is still present. I didn't perform measurements, but it seems to be ~30-50 ms
Device capabilities can vary quite a bit. Also, newer versions of ARCore do tend to improve image tracking. Is this still an issue?
No, it isn`t. Updating ARCore solved the problem. Thanks!
Em sex., 10 de jul. de 2020 às 19:55, Tim Mowrer [email protected] escreveu:
Device capabilities can vary quite a bit. Also, newer versions of ARCore do tend to improve image tracking. Is this still an issue?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/arfoundation-samples/issues/310#issuecomment-656929369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJC6DA5NKFKAEFGDQCQ2LGTR26L73ANCNFSM4I3LB64Q .
Great, thanks for confirming!
Using the most current version of ARCore/ARFoundation, I continue to see these issues with image tracking on all our testing devices (a variety of well spec'ed Android devices).
It takes a considerable amount of time to track images (images that score well for expected tracking quality), the camera must be very close to the image to detect it, and tracking quickly becomes unstable as described, even after small movements.
This is in stark contrast to other solutions like Vuforia where tracking is happening virtually instantaneously with the same images from further distance, and remains tracking well even with significant movement. It's suspicious that I'm seeing such a noticeable difference.
I am also noticing very slow image detection on ARCore (when using AR Foundation). It usually takes Android 1 second to call the "added" event when I dynamically add a tracking image. Than the first updated event will take between 5-10 second... Using ARCore 4.x.x (tried them all).
I too share this issue of taking a long time to detect the image for the first time but I came to know that my ImageTarget does not have ideal features to track it based on the score(20) on arcoreimge tool. The thing is I am actually shifting my project from vuforia to arfoundation for an already published jigsaw puzzle as an image target. So I can't change the image target, Is there any workaround for better tracking?
Same issue in Unity 2021.2.9. If Unity's ARCore is in the project the Android phone camera runs around 1 frame per second and freezes for five seconds every 7 or 8 seconds. Unusable. I tried switching to Vuforia, but it has the same issue if Unity's ARCore plugin is included. Did anyone find a cause for this?
Tested on Samsung s21, s20 and S8. Two of those are top of the line phones.
Does someone has a solution ?