> For the complete documentation index, see [llms.txt](https://guide.swiftxr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.swiftxr.io/how-to/best-practices-for-image-tracking-on-swiftxr.md).

# Best Practices For Image Tracking on SwiftXR

The image tracking technology requires the adherence to some certain standards in order to achieve maximum results. For example there are certain factors around your image element, environment, device that will determine the effectiveness of your project.

Below are some major best practices for image tracking on SwiftXR

First you have to ensure to initialize tracking properly by moving to  the camera in a slow and steady circular motion. Try not to make any sudden, fast movements and don’t rotate the camera.

Keep in mind that initialization may take significantly longer on lower devices and it’s easier to lose tracking on these devices, especially when the target is out of view. Image tracking effects are only visible through the camera on the back of the device. Now check out some standards for the image that can be easily tracked.

\
**High- Quality Images:** You must ensure you make use of high- resolution images with clear distinct features. Your image should have at least 300\*300 pixels Take a look at a comparison between a high quality image and a low quality image of a cat.

<figure><img src="/files/7ftuzKjDH1XivIYzLi3v" alt=""><figcaption><p><a href="https://images.app.goo.gl/Z7auUfrkgUT6U6449">Source</a></p></figcaption></figure>

**High Contrast:** Ensure you avoid images that has lots of Pastel colours. Please note that while both colour and white and black images works only images with  high tonal contrast.

<figure><img src="/files/ibwZq5HRwsTMaXXkbjhX" alt=""><figcaption><p><a href="https://www.fiverr.com/sales3591">Source Image </a> 1-- <a href="https://www.istockphoto.com/vector/teal-orange-grainy-background-banner-noise-texture-glowing-color-gradient-vibrant-gm1949882446-557121044?searchscope=image%2Cfilm">Source Image 2</a></p></figcaption></figure>

The picture to the left definitely has high contrast than that of the right.

**Asymmetrical patterns and composition :**&#x49;mages with asymmetrical and repeated patterns will be difficult to track, Due to the fact that they can be easily inverted. Check out these two images.&#x20;

<figure><img src="/files/eCVfWfFmmYZEgm4Tv4I7" alt=""><figcaption><p><a href="https://www.shutterstock.com/search/city-buildings">Source:: Building</a> -- <a href="https://www.tylersmathworld.com/single-post/2017/05/30/multiplying-triangle-and-square-sequences">Source:: Square-Sequence</a></p></figcaption></figure>

\
**Clear Image shape:** Your Image shape can be any kind of shape but it must be sufficient enough to accommodate your 3D model. For example, tracking a model on an image like a thin paper like money will move and distort because the paper is thin, making it difficult for the camera to identify the image.&#x20;

<figure><img src="/files/4NDbc4OQQwTBcPrwaBwS" alt=""><figcaption><p>Source:: <a href="https://unsplash.com/s/photos/100-dollar-bills">Money Bills </a> --<a href="https://www.dreamstime.com/illustration/hamburger-circle.html"> Hamburger</a></p></figcaption></figure>

**Consistent Lighting:** Ensure consistent lighting conditions when capturing images. Avoid shadows and reflections that can interfere with tracking.&#x20;

**Stable Surfaces:** Here Ensure to Place your image  on a stable, Flat surface to avoid movement during  tracking and ensure to secure your image properly. In a fixed target tracking effect, the effect will appear at the point where the target image was first detected by the camera. If the target leaves the camera’s view, the effect will still be displayed and tracked correctly.&#x20;

To make sure these kinds of effects work, place the target in a rich environment with lots of detail and contrast in the surroundings. For example, display the target on a highly-decorative background as opposed to a plain white table or wall.\
\
**Optimal Size:** The images that are neither too small nor too large. A good rule of thumb is to fill about half of the camera view for optimal tracking

**Distance:** Your 3D model  in augmented reality works  best when the camera is closer to the image. The camera shouldn’t be further away than 3 times the width of the tracked image. The image should fill a large portion of the device frame, at least half the image should be visible in the camera view.

**Avoid blank space or transparency:** Here you want to ensure to Avoid using images  with lots of transparency or blank space around the actual image. Take a look at the two images below:

<figure><img src="/files/mFJSiRAd6FXzTXUdIWHN" alt=""><figcaption><p><a href="https://www.istockphoto.com/photo/gerbera-in-vase-on-old-wooden-table-gm513479986-87629113?searchscope=image%2Cfilm">Source</a></p></figcaption></figure>

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.swiftxr.io/how-to/best-practices-for-image-tracking-on-swiftxr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
