Image tracking sample

Hello everyone! I’m trying the Image Tracking from the samples (Everywhere Actions | Needle Engine Documentation)
What do I have to do in order to scan the image with my phone? “Then enter AR and scan with your camera”. What does it mean “enter AR”? I have android with AR Core installed

Hello Luca Varini! To scan the image using the Image Tracking sample, you need to “enter AR” which means starting the Augmented Reality session on your device.

Here are the steps to do that on your Android phone:

  1. Enable WebXR Incubations: Open Chrome on your Android device and enable “WebXR Incubations” from the Chrome flags. You can do this by typing chrome://flags/#webxr-incubations in the address bar and enabling the corresponding option.

  2. Access the AR Scene: You can then open the live sample by navigating to the URL of the Image Tracking sample in your Chrome browser.

  3. Use the Camera: Point your phone’s camera at the specific image marker (you can print it out or display it on a screen). The AR experience will recognize the image and overlay the 3D content appropriately.

  4. Ensure Permissions are Granted: Allow your web browser to access the camera when prompted, so that it can track the image correctly.

Make sure your device meets the requirements for AR and has ARCore installed (see everywhere actions). If you experience issues, please check the device’s compatibility and ensure you’re using the latest version of Chrome.

If you need more help, feel free to ask!

3 replies left
thread_JazktzyMeQam9ABuV7KbVp1M
Reply to this message to continue the conversation


Sadly nothing happens. I activated the flag in chrome browser of my android device. I have ArCore installed… Nothing happens. This is the normal camera of my phone. Am I missing something?

Luca, if nothing is happening when you try to enter AR, here are a few troubleshooting steps you can follow:

  1. WebXR Support: Ensure that your browser supports WebXR. You should be using the latest version of Chrome. Sometimes, restarting the browser might help after enabling flags.

  2. Secure Connection: AR sessions require a secure connection. Ensure that you’re accessing the sample through HTTPS, and not HTTP. If you’re testing locally, consider using a local server with HTTPS.

  3. Camera Permissions: Make sure that you have granted camera permissions to the browser. You should see a permissions prompt when accessing the webpage for the first time. If you denied it, you can change it in your device settings under app permissions.

  4. Testing Environment: Sometimes additional settings or software might interfere with accessing the camera or session. Try refreshing the page or testing on a different device if possible.

  5. Check Console for Errors: Open the developer console in Chrome (right-click → Inspect → Console) to see if any error messages are displayed related to XR or camera access.

  6. Device Compatibility: Double-check if your device is officially supported for AR with WebXR. You may refer to the compatibility lists to ensure your specific Android model is supported.

If you continue to face issues, providing specific error messages from the console can help diagnose further. Let me know how it goes!

3 replies left
thread_JazktzyMeQam9ABuV7KbVp1M
Reply to this message to continue the conversation

Hi, your screenshot looks like you just opened your camera app on your phone

Please open the image tracking sample website on your phone - click “Enter AR” and then point to the image. This is a webxr image tracking sample and you need to run it in your browser!

Thank you, Marcel, I was missing this part! Now it works :slight_smile:

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.