AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ModerationLabel

import "github.com/aws/aws-sdk-go/service/rekognition"

type ModerationLabel struct { Confidence *float64 `type:"float"` Name *string `type:"string"` ParentName *string `type:"string"` }

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 Detecting Unsafe Content in the Amazon Rekognition Developer Guide.

Confidence

Type: *float64

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.

Name

Type: *string

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

ParentName

Type: *string

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

Method

GoString

func (s ModerationLabel) GoString() string

GoString returns the string representation

SetConfidence

func (s *ModerationLabel) SetConfidence(v float64) *ModerationLabel

SetConfidence sets the Confidence field's value.

SetName

func (s *ModerationLabel) SetName(v string) *ModerationLabel

SetName sets the Name field's value.

SetParentName

func (s *ModerationLabel) SetParentName(v string) *ModerationLabel

SetParentName sets the ParentName field's value.

String

func (s ModerationLabel) String() string

String returns the string representation

On this page: