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 bytes or an S3 object.

Returns:



564
565
566
567
568
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 564

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)


564
565
566
567
568
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 564

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