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

Class: Aws::Rekognition::Types::SearchFacesByImageRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SearchFacesByImageRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  collection_id: "CollectionId", # required
  image: { # required
    bytes: "data",
    s3_object: {
      bucket: "S3Bucket",
      name: "S3ObjectName",
      version: "S3ObjectVersion",
    },
  },
  max_faces: 1,
  face_match_threshold: 1.0,
}

Instance Attribute Summary collapse

Instance Attribute Details

#collection_idString

ID of the collection to search.

Returns:

  • (String)

    ID of the collection to search.

#face_match_thresholdFloat

(Optional) Specifies 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)

    (Optional) Specifies the minimum confidence in the face match to return.

#imageTypes::Image

The input image as bytes or an S3 object.

Returns:

  • (Types::Image)

    The input image as bytes or an S3 object.

#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)

    Maximum number of faces to return.