Class: Aws::Rekognition::Types::IndexFacesRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Rekognition::Types::IndexFacesRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-rekognition/types.rb
Overview
When making an API call, you may pass IndexFacesRequest data as a hash:
{
collection_id: "CollectionId", # required
image: { # required
bytes: "data",
s3_object: {
bucket: "S3Bucket",
name: "S3ObjectName",
version: "S3ObjectVersion",
},
},
external_image_id: "ExternalImageId",
detection_attributes: ["DEFAULT"], # accepts DEFAULT, ALL
}
Instance Attribute Summary collapse
-
#collection_id ⇒ String
The ID of an existing collection to which you want to add the faces that are detected in the input images.
-
#detection_attributes ⇒ Array<String>
An array of facial attributes that you want to be returned.
-
#external_image_id ⇒ String
ID you want to assign to all the faces detected in the image.
-
#image ⇒ Types::Image
The input image as bytes or an S3 object.
Instance Attribute Details
#collection_id ⇒ String
The ID of an existing collection to which you want to add the faces that are detected in the input images.
963 964 965 966 967 968 969 |
# File 'lib/aws-sdk-rekognition/types.rb', line 963 class IndexFacesRequest < Struct.new( :collection_id, :image, :external_image_id, :detection_attributes) include Aws::Structure end |
#detection_attributes ⇒ Array<String>
An array of facial attributes that you want to be returned. This can be the default list of attributes or all attributes. If you don’t specify a value for ‘Attributes` or if you specify `[“DEFAULT”]`, the API returns the following subset of facial attributes: `BoundingBox`, `Confidence`, `Pose`, `Quality` and `Landmarks`. If you provide `[“ALL”]`, all facial attributes are returned but the operation will take longer to complete.
If you provide both, ‘[“ALL”, “DEFAULT”]`, the service uses a logical AND operator to determine which attributes to return (in this case, all attributes).
963 964 965 966 967 968 969 |
# File 'lib/aws-sdk-rekognition/types.rb', line 963 class IndexFacesRequest < Struct.new( :collection_id, :image, :external_image_id, :detection_attributes) include Aws::Structure end |
#external_image_id ⇒ String
ID you want to assign to all the faces detected in the image.
963 964 965 966 967 968 969 |
# File 'lib/aws-sdk-rekognition/types.rb', line 963 class IndexFacesRequest < Struct.new( :collection_id, :image, :external_image_id, :detection_attributes) include Aws::Structure end |
#image ⇒ Types::Image
The input image as bytes or an S3 object.
963 964 965 966 967 968 969 |
# File 'lib/aws-sdk-rekognition/types.rb', line 963 class IndexFacesRequest < Struct.new( :collection_id, :image, :external_image_id, :detection_attributes) include Aws::Structure end |