Amazon.Rekognition.AmazonRekognitionClient.IndexFaces C# (CSharp) 메소드

IndexFaces() 공개 메소드

Detects faces in the input image and adds them to the specified collection.

Amazon Rekognition does not save the actual faces detected. Instead, the underlying detection algorithm first detects the faces in the input image, and for each face extracts facial features into a feature vector, and stores it in the back-end database. Amazon Rekognition uses feature vectors when performing face match and search operations using the and operations.

If you provide the optional externalImageID for the input image you provided, Amazon Rekognition associates this ID with all faces that it detects. When you call the operation, the response returns the external ID. You can use this external image ID to create a client-side index to associate the faces with each image. You can then use the index to find all faces in an image.

In response, the operation returns an array of metadata for all detected faces. This includes, the bounding box of the detected face, confidence value (indicating the bounding box contains a face), a face ID assigned by the service for each face that is detected and stored, and an image ID assigned by the service for the input image If you request all facial attributes (using the detectionAttributes parameter, Rekognition returns detailed facial attributes such as facial landmarks (for example, location of eye and mount) and other facial attributes such gender. If you provide the same image, specify the same collection, and use the same external ID in the IndexFaces operation, Rekognition doesn't save duplicate face metadata.

For an example, see example2.

This operation requires permissions to perform the rekognition:IndexFaces action.

/// You are not authorized to perform the action. /// /// The input image size exceeds the allowed limit. For more information, see limits. /// /// Amazon Rekognition experienced a service issue. Try your call again. /// /// The provided image format is not supported. /// /// Input parameter violated a constraint. Validate your parameter before calling the /// API again. /// /// Amazon Rekognition is unable to access the S3 object specified in the request. /// /// The number of requests exceeded your throughput limit. If you want to increase this /// limit, contact Amazon Rekognition. /// /// Collection specified in the request is not found. /// /// Amazon Rekognition is temporarily unable to process the request. Try your call again. ///
public IndexFaces ( IndexFacesRequest request ) : IndexFacesResponse
request Amazon.Rekognition.Model.IndexFacesRequest Container for the necessary parameters to execute the IndexFaces service method.
리턴 Amazon.Rekognition.Model.IndexFacesResponse
        public IndexFacesResponse IndexFaces(IndexFacesRequest request)
        {
            var marshaller = new IndexFacesRequestMarshaller();
            var unmarshaller = IndexFacesResponseUnmarshaller.Instance;

            return Invoke<IndexFacesRequest,IndexFacesResponse>(request, marshaller, unmarshaller);
        }