Search Unity

Image target library size

Discussion in 'AR' started by nyonge, Dec 7, 2019.

  1. nyonge

    nyonge

    Joined:
    Jul 11, 2013
    Posts:
    49
    How many images is it okay to use in a reference image library, and still maintain solid performance? Will library size affect performance at all?

    Ive made apps that use 5-10 images in the ARFoundation image tracking reference library, which works great. Could I add 50? 100? 1000? Assume they’re all relatively distinct, to minimize mistaking one image for another.

    Thanks!
     
  2. ashygoyal

    ashygoyal

    Joined:
    Oct 9, 2021
    Posts:
    4
    Hi, did you ever find out the answer to this?! I still couldnt locate any specific information for this question!

    This blog here: https://www.andreasjakl.com/2d-image-tracking-with-ar-foundation-part-4/
    mentions that maximum of 1,000 reference images can be supported in an on-device database. Although, I did not verify/ test this to get an idea about how would the performance get affected.

    But this is the closest I could come to finding an answer!
     
  3. ankur-unity

    ankur-unity

    Unity Technologies

    Joined:
    Aug 12, 2021
    Posts:
    34
    It depends on the platform.

    For image tracking, ARCore limits the number of images to 1000 per library "Each Augmented Image database can store information up to 1,000 reference images. There's no limit to the number of databases, but only one database can be active at any given time.":
    https://developers.google.com/ar/develop/augmented-images#moving-images

    and ARKit recommends "For best results, limit your detection image count to no more than around 100." as documented here:
    https://developer.apple.com/documen...2941063-detectionimages?language=objc#3924193
     
    ashygoyal likes this.