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

Class: Aws::Rekognition::Types::DetectModerationLabelsRequest

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 DetectModerationLabelsRequest data as a hash:

{
  image: { # required
    bytes: "data",
    s3_object: {
      bucket: "S3Bucket",
      name: "S3ObjectName",
      version: "S3ObjectVersion",
    },
  },
  min_confidence: 1.0,
}

Instance Attribute Summary collapse

Instance Attribute Details

#imageTypes::Image

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

Returns:



813
814
815
816
817
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 813

class DetectModerationLabelsRequest < Struct.new(
  :image,
  :min_confidence)
  include Aws::Structure
end

#min_confidenceFloat

Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with a confidence level lower than this specified value.

If you don't specify MinConfidence, the operation returns labels with confidence values greater than or equal to 50 percent.

Returns:

  • (Float)


813
814
815
816
817
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 813

class DetectModerationLabelsRequest < Struct.new(
  :image,
  :min_confidence)
  include Aws::Structure
end