Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question ARkit Image Tracking quality...

Discussion in 'AR' started by wuannetraam, Jun 27, 2023.

  1. wuannetraam

    wuannetraam

    Joined:
    Oct 29, 2019
    Posts:
    87
    I have build an ar app for Android and iOS. You have to scan an image and then a 3d object will spawn on it. I am using AR Foundation. The tracking works perfect on Android but on iOS the tracking is vrry bad and the objects are floating. Any idea what is causing this and how to fix this?
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    791
    The most common reason for this is that the image you have provided is not suitable for tracking on the iOS platform. Apple offers a way to test image tracking quality in Xcode:

    Not all images are equally suited for using them as ARReferenceImages. Good reference images typically have high contrast, good texture, clear edges, and are printed on a flat, non-glossy surface. Low-texture and low-contrast images will likely not work so well. When you add reference images to an ARResourceGroup in an Xcode asset catalog, Xcode will show quality estimation warnings, which may provide additional insights about the specific issue with that particular image.

    In some cases, you can try using an image editing tool to tweak contrast, exposure, or emphasize edges. Depending on the subject, cropping may work as well. For example, a picture showing mostly a blue sky with a small airplane could be cropped to just the region showing the airplane. If you can't get detection to work at all for a particular image, you probably need to consider replacing it.


    https://developer.apple.com/forums/thread/685469
     
  3. wuannetraam

    wuannetraam

    Joined:
    Oct 29, 2019
    Posts:
    87
    thank you very much. I will ook up the image quality. Hopefully I can get it to to work better.