Amazon.Rekognition.AmazonRekognitionClient.SearchFaces C# (CSharp) Method

SearchFaces() public method

For a given input face ID, searches the specified collection for matching faces. You get a face ID when you add a face to the collection using the IndexFaces operation. The operation compares the features of the input face with faces in the specified collection.

You can also search faces without indexing faces by using the SearchFacesByImage operation.

The operation response returns an array of faces that match, ordered by similarity score with the highest similarity first. More specifically, it is an array of metadata for each face match that is found. Along with the metadata, the response also includes a confidence value for each face match, indicating the confidence that the specific face matches the input face.

For an example, see example3.

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

/// You are not authorized to perform the action. /// /// Amazon Rekognition experienced a service issue. Try your call again. /// /// Input parameter violated a constraint. Validate your parameter before calling the /// API again. /// /// 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 SearchFaces ( SearchFacesRequest request ) : SearchFacesResponse
request SearchFacesRequest Container for the necessary parameters to execute the SearchFaces service method.
return Amazon.Rekognition.Model.SearchFacesResponse
        public SearchFacesResponse SearchFaces(SearchFacesRequest request)
        {
            var marshaller = new SearchFacesRequestMarshaller();
            var unmarshaller = SearchFacesResponseUnmarshaller.Instance;

            return Invoke<SearchFacesRequest,SearchFacesResponse>(request, marshaller, unmarshaller);
        }