You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Rekognition::Types::SearchFacesRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb

Overview

Note:

When making an API call, you may pass SearchFacesRequest data as a hash:

{
  collection_id: "CollectionId", # required
  face_id: "FaceId", # required
  max_faces: 1,
  face_match_threshold: 1.0,
}

Instance Attribute Summary collapse

Instance Attribute Details

#collection_idString

ID of the collection the face belongs to.

Returns:

  • (String)


1405
1406
1407
1408
1409
1410
1411
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 1405

class SearchFacesRequest < Struct.new(
  :collection_id,
  :face_id,
  :max_faces,
  :face_match_threshold)
  include Aws::Structure
end

#face_idString

ID of a face to find matches for in the collection.

Returns:

  • (String)


1405
1406
1407
1408
1409
1410
1411
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 1405

class SearchFacesRequest < Struct.new(
  :collection_id,
  :face_id,
  :max_faces,
  :face_match_threshold)
  include Aws::Structure
end

#face_match_thresholdFloat

Optional value specifying the minimum confidence in the face match to return. For example, don't return any matches where confidence in matches is less than 70%.

Returns:

  • (Float)


1405
1406
1407
1408
1409
1410
1411
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 1405

class SearchFacesRequest < Struct.new(
  :collection_id,
  :face_id,
  :max_faces,
  :face_match_threshold)
  include Aws::Structure
end

#max_facesInteger

Maximum number of faces to return. The operation returns the maximum number of faces with the highest confidence in the match.

Returns:

  • (Integer)


1405
1406
1407
1408
1409
1410
1411
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 1405

class SearchFacesRequest < Struct.new(
  :collection_id,
  :face_id,
  :max_faces,
  :face_match_threshold)
  include Aws::Structure
end