# Face Tracking

Face detection or tracking is a computer technology utilized in various applications to identify human faces in digital images. It also refers to the psychological process by which humans recognize and focus on faces within a visual scene.

<figure><img src="/files/v7x1cdW1pDIUaUuTVrze" alt=""><figcaption></figcaption></figure>

## To Create a Face Tracking Project on SwiftXR

Click on 3D under components and select the Face tracking feature.

<figure><img src="/files/GrEqgsFFTJPG6jsM9102" alt=""><figcaption></figcaption></figure>

Upload a 3D model of your desired virtual element (either a face glass or a necklace or a earring or even a cap). You can upload a custom 3D model of your choice or simply request for one on the platform.

<figure><img src="/files/WlonBYMmbssTMZ9X33TI" alt=""><figcaption></figcaption></figure>

## Adjust Object on Face

On the right hand side of the editor click  on properties and select Face Tracking. Select adjust object on face. In the editor  use the “All” panel under size to resize your 3D object to fit the face model. Then to adjust the position use  XYZ control panel to  move your object around appropriately. <br>

<figure><img src="/files/SesN6fEQz2o6HXgewyt8" alt=""><figcaption></figcaption></figure>

Click on “save” when you are done:

## Preview and Publish your Project

Click on the drop down icon beside Publish to preview your project and view in AR. Place your camera on your face and your glasses should appear. Once you are satisfied with your fittings, go ahead to publish your project.

<br>


---

# Agent Instructions: 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/components/face-tracking-1.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.
