# Quickstart - Add Face

> The purpose of this guide is to help you create a working sample of the [Add Face](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-add-faces#add-face) activity. This working sample enables you to quickly verify the connection to your AWS account and get familiar with the activity's input/output datatypes.

## Overview

The purpose of this guide is to help you create a working sample of the [Add Face](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-add-faces#add-face) activity. This working sample enables you to quickly verify the connection to your AWS account and get familiar with the activity's input/output datatypes.

By completing the steps in this guide, you'll have an automation sequence that does the following:

1. Establishes a connection to your AWS account and Amazon Rekognition services via the [Amazon Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-amazon-scope#amazon-scope) activity.
2. Creates a new collection to store information about faces detected in an image via the [Create Collection](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-create-collection#create-collection) activity.
3. Detects faces in an image and adds them to your specified collection via the [Add Face](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-add-faces#add-face) activity.
4. Tests the Amazon Rekognition activities' input/output properties via the [For Each](https://docs.uipath.com/activities/docs/for-each) and [Write Line](https://docs.uipath.com/activities/docs/write-line) activities.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-22873-8eab5edf-449bac60.webp)

## Prerequisites

Before you begin:

1. Complete the Amazon Rekognition Setup steps.
2. Create a new automation project.
   1. Open UiPath Studio.
   2. Under **New Project**, click **Process** (this opens a **New Blank Process** window).
   3. Enter a project **Name**, **Location**, and **Description**.
   4. Click **Create**.

      ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-22859-60ad26ab-2f6dd8e4.webp)
3. Install the **UiPath.Amazon.Scope.Activities** and **UiPath.Amazon.Rekognition.Activities** packages.
   1. 1. In the **Design** ribbon, click **Manage Packages** (this opens the **Manage Packages** window).
      2. Under **All Packages**, click **Go!**
      3. In the **Search** bar, enter *Amazon*.
      4. Click, install and accept the license for both the **UiPath.Amazon.Scope.Activities** and **UiPath.Amazon.Rekognition.Activities**. For more information about Uipath Studio packages, see [Managing Packages](https://docs.uipath.com/studio/docs/managing-activities-packages) in the Studio Guide.

         ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-24511-ed4ba018-b4d3e230.webp)

## Steps

Build Your project

1. Add the [Amazon Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-amazon-scope#amazon-scope) activity to your project.
2. If you don't have an existing collection to store the faces you want to add, add the [Create Collection](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-create-collection#create-collection) activity after the **Amazon Scope** activity, otherwise, proceed to step 3.
3. Add the [Add Face](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-add-faces#add-face) activity after the **Create Collection** activity (if applicable).
4. Enter the **CollectionName** that you want to use to store your faces.
   * Recommendation: use the same `String` variable for both the **Create Collection** and **Add Faces** activities to ensure consistency.
5. Enter the **ImagePath** or **ImageURL** of the image that contains the faces you want to add to your collection.
   * Recommendation: create a `String` variable for your image location so that you can reuse it in other activites (e.g., **Identify Faces**, **Compare Faces**).
6. Enter an **ImageID** that you want to assign to the image when its stored in the collection.
   * Example: if your image has only one face, your **ImageID** could be the person's name (e.g., "*Peter*"). If your image has multiple faces, the **ImageID** is applied to all faces in the image. In this instance, your value should reflect how you want to identify the group of faces (e.g., "*Peter.Paul.Mary*").
7. Create and enter a `Face[]` variable for your **Face** value.
   * When creating your variable, select the *UiPath.Amazon.Rekognition.Models.Face[]* variable type.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-23271-d64586cd-5d5e0d72.webp)

Test Your Project

1. To test the **Add Face** activity, add a [For Each](https://docs.uipath.com/activities/docs/for-each) with a [Write Line](https://docs.uipath.com/activities/docs/write-line) activity.
2. In the **TypeArgument** property, select *UiPath.Amazon.Rekognition.Models.Face*.
3. In the **Values** property, enter the **Face** property `Face[]` variable you created in step 2 above.
4. In the **Text** property, enter the **ImageID** property `String` variable you created in step 3 above.
5. Click **Run** and verify the **Output** window includes the face detail values you entered in the **Write Line** activity.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-25992-0ba3c7f7-6146b395.webp)

You're done!

When you're ready, try the other [Quickstart](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-quickstarts) guides to get more familiar with the different Amazon Rekognition activities.

To learn more about the other Amazon Rekognition activities, see the [Activities](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-rekognition-activities#activities) page for a complete activity list and links to the activity detail pages.
