UiPath Documentation
activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Activités Classic Integration

Dernière mise à jour 20 mai 2026

Démarrage rapide - Identifier le visage

Vue d'ensemble (Overview)

The purpose of this guide is to help you create a working sample of the Identify 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.

En suivant les étapes de ce guide, vous disposerez d'une séquence d'automatisation qui effectue les opérations suivantes :

  1. Établit une connexion à votre compte AWS et aux services Amazon Rekognition via l'activité Amazon Scope .

  2. Creates a new collection to store information about the faces detected in an image via the Create Collection activity.

  3. Détecte les visages dans une image et les ajoute à votre collection spécifiée via l'activité Ajouter un visage .

  4. Detects the largest face in your input image and searches the specified collection (Collection) for matching faces; returning an array of identified faces via the Identify Face activity. 5.Tests the Amazon Rekognition activities' input/output properties via the For Each and Write Line activities.

Prérequis

Avant de commencer, remplissez les conditions préalables applicables ci-dessous.

Si vous avez rempli les prérequis pour un autre guide de démarrage rapide d'Amazon Rekognition, tout est prêt et vous pouvez accéder directement à la section Étapes ci-dessous.

  1. Suivez les étapes de Configuration d’Amazon Rekognition.
  2. Créez un nouveau projet d'automatisation.
    1. Ouvrez UiPath Studio.

    2. Under New Project, click Process (this opens a New Blank Process window).

    3. Enter a project Name, Location, and Description.

    4. Cliquez sur Créer (Create).

  3. Installez les packages UiPath.Amazon.Scope.Activities et UiPath.Amazon.Rekognition.Activities .
    1. In the Design ribbon, click Manage Packages (this opens the Manage Packages window).
    2. Under All Packages, click Go!
    3. Dans la barre Rechercher , saisissez Amazon.
    4. Cliquez, installez et acceptez la licence à la fois pour UiPath.Amazon.Scope.Activities et UiPath.Amazon.Rekognition.Activities.

Étapes

Construire votre projet

To use the Identify Face activity:

  1. Ajoutez l'activité Amazon Scope à votre projet.
  2. If you don't have an existing collection that contains the faces that you want to identify, add the Create Collection activity after the Amazon Scope activity, otherwise, proceed to step 3.
  3. If you don't have the faces that you want to identify stored in your specified collection, add the Add Face activity after the Amazon Scope or Create Collection (whichever is applicable) otherwise, proceed to step 4.
  4. Add the Identify Face activity after the Add Face activity (if applicable).
  5. Saisissez la valeur CollectionName que vous souhaitez utiliser pour stocker vos visages.
    • Recommandation: utilisez la même String variable pour les activités Créer une collection et Ajouter des visages pour assurer la cohérence.
  6. Saisissez le CheminImage ou l'URL de l'image contenant les visages que vous souhaitez ajouter à votre collection.
    • Recommendation: create a String variable for your image location so that you can reuse it in other activities (e.g., Compare Faces).
      • Because the goal of this project is to identify the same face in different pictures, this variable should not be the same as the Add Face activity String variable (if applicable).
      • In the example image below, you'll see there are two variables. The imageOne variable is used in the Add Face activity and the imageTwo variable is used in the Identify Face activity.
  7. Create and enter a Face[] variable for your Faces value.
    • Lors de la création de votre variable, sélectionnez le type UiPath.Amazon.Rekognition.Models.Face[] .
    • This variable should be different from the Add Face activity Face[] variable (if applicable).
      • In the example image below, you'll see there are two variables. The faceOne variable is used in the Add Face activity and the faceTwo variable is used in the Identify Face activity.

Testez votre projet

  1. To test the Identify Face activity, add a For Each with a Write Line activity, after the Add Face activity (if applicable) and the Identify Face activity.
  2. In the For Each activity after the Add Face activity:
    1. Dans la propriété SaisirArgument , sélectionnez UiPath.Amazon.Rekognition.Models.Face.
    2. In the Values property, enter the Face[] variable you created for the Add Face activity (e.g., facesOne).
    3. In the Text property, enter item.ImageId.
      • This returns the ImageID value that you assigned via the Add Face activity.
  3. In the For Each activity after the Identify Face activity:
    1. Dans la propriété SaisirArgument , sélectionnez UiPath.Amazon.Rekognition.Models.Face.
    2. In the Values property, enter the Face[] variable you created for the Identify Face activity in step 3 above (e.g., facesTwo).
    3. In the Text property enter item.ImageID+ " : " +item.FaceID.
      • This returns the ImageID value that you assigned via the Add Face activity, as well as, the FaceID that Amazon Rekognition assigned.
      • If you did not previously use the Add Face activity and added a face via the AWS CLI or AWS SDK API or AWS Console, the ImageID value is the same as the ExternalImageID datatype in the Amazon Rekognition activities.
  4. Click Run and verify the Output window includes two output messages:
    1. The ImageID assigned to each face from the Add Face activity.
      • Dans l'image d'exemple ci-dessous, cette valeur est renvoyée trois fois car il y a trois visages dans l'image d'entrée fournie)
    2. The ImageID and the FaceID of the face identified in the picture.
      • In the example image below, only one ImageID and FaceID value is returned (not three); this is because the Identify Face activity can only identify the largest face in the image.

Vous avez terminé !

Lorsque vous êtes prêt, essayez les autres guides de démarrage rapide pour vous familiariser avec les différentes activités Amazon Rekognition.

Pour en savoir plus sur les autres activités Amazon Rekognition, consultez la page Activités pour obtenir une liste complète des activités et des liens vers les pages de détails des activités.

  • Vue d'ensemble (Overview)
  • Prérequis
  • Étapes

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour