- Click on the
Assets
folder and then navigate to theAR Resources
folder (under the app icon). - Drag and drop ArUco markers (or really any other image) from Finder into the resource group.
- For each image, use the attributes inspector located on the right of Xcode to describe the physical size of the image.
According to Apple:
ARKit relies on this information (the physical size) to determine the distance of the image from the camera. Entering an incorrect physical size will result in an ARImageAnchor that’s the wrong distance from the camera.
Xcode may give warnings about any marker due to their nature, but detection still works fine in a well lit environment.
The warnings may say the markers have narrow histograms, repetitive structures, or uniform contrast regions, but can be safely ignored.