UiPath Documentation
activities
latest
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

Klassische Integrationsaktivitäten

Letzte Aktualisierung 20. Mai 2026

Schnellstart – Identify Face

Überblick

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.

Wenn Sie die Schritte in dieser Anleitung ausführen, erhalten Sie eine Automatisierungssequenz, die Folgendes ausführt:

  1. Stellt eine Verbindung mit Ihrem AWS-Konto und Amazon Rekognition Services über die Aktivität Amazon Scope her.

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

  3. Erkennt Gesichter in einem Bild und fügt sie über die Aktivität Add Face zu Ihrer angegebenen Sammlung hinzu.

  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.

Voraussetzungen

Bevor Sie beginnen, erfüllen Sie die unten aufgeführten Voraussetzungen.

Wenn Sie die Voraussetzungen für eine andere Amazon Rekognition- Schnellstartanleitung erfüllt haben, sind Sie bereit und können direkt mit dem folgenden Abschnitt fortfahren.

  1. Schließen Sie die Schritte zum Einrichten von Amazon Rekognition ab.
  2. Erstellen Sie ein neues Automatisierungsprojekt.
    1. Öffnen Sie UiPath Studio.

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

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

    4. Klicken Sie auf Erstellen (Create).

  3. Installieren Sie die Pakete UiPath.Amazon.Scope.Activities und 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. Geben Sie in der Suchleiste Amazon ein.
    4. Klicken, installieren und akzeptieren Sie die Lizenz sowohl für UiPath.Amazon.Scope.Activities als auch für UiPath.Amazon.Rekognition.Activities.

Schritte

Erstellen Ihres Projekts

To use the Identify Face activity:

  1. Fügen Sie die Aktivität Amazon Scope zu Ihrem Projekt hinzu.
  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. Geben Sie den Sammlungsnamen ein, den Sie zum Speichern Ihrer Gesichter verwenden möchten.
    • Empfehlung: Verwenden Sie dieselbe Variable String sowohl für die Aktivitäten Create Collection als auch für Add Faces , um die Konsistenz sicherzustellen.
  6. Geben Sie den Bildpfad oder die Bild-URL des Bilds ein, das die Gesichter enthält, die Sie Ihrer Sammlung hinzufügen möchten.
    • 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.
    • Wählen Sie beim Erstellen Ihrer Variablen den Variablentyp UiPath.Amazon.Rekognition.Models.Fce[] aus.
    • 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.

Testen Sie Ihr Projekt

  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. Wählen Sie in der Eigenschaft Argumenttyp die Option UiPath.Amazon.Rekognition.Models.Fce aus.
    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. Wählen Sie in der Eigenschaft Argumenttyp die Option UiPath.Amazon.Rekognition.Models.Fce aus.
    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.
      • Im folgenden Beispielbild wird dieser Wert dreimal zurückgegeben, da das bereitgestellte Eingabebild drei Gesichter enthält.)
    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.

Alles erledigt!

Wenn Sie bereit sind, lesen Sie die anderen Schnellstart -Anleitungen, um sich mit den verschiedenen Amazon Rekognition-Aktivitäten vertraut zu machen.

Weitere Informationen zu den anderen Amazon Rekognition-Aktivitäten finden Sie auf der Seite Aktivitäten für eine vollständige Aktivitätsliste und Links zu den Seiten mit Aktivitätsdetails.

  • Überblick
  • Voraussetzungen
  • Schritte

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben