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

Class: Aws::Rekognition::Types::ModerationLabel

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

Overview

Provides information about a single type of moderated content found in an image or video. Each type of moderated content has a label within a hierarchical taxonomy. For more information, see moderation.

Instance Attribute Summary collapse

Instance Attribute Details

#confidenceFloat

Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.

If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.

Returns:

  • (Float)


2077
2078
2079
2080
2081
2082
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2077

class ModerationLabel < Struct.new(
  :confidence,
  :name,
  :parent_name)
  include Aws::Structure
end

#nameString

The label name for the type of content detected in the image.

Returns:

  • (String)


2077
2078
2079
2080
2081
2082
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2077

class ModerationLabel < Struct.new(
  :confidence,
  :name,
  :parent_name)
  include Aws::Structure
end

#parent_nameString

The name for the parent label. Labels at the top-level of the hierarchy have the parent label "".

Returns:

  • (String)


2077
2078
2079
2080
2081
2082
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2077

class ModerationLabel < Struct.new(
  :confidence,
  :name,
  :parent_name)
  include Aws::Structure
end