Documentation ¶
Overview ¶
Package rekognition provides the client and types for making API requests to Amazon Rekognition.
This is the Amazon Rekognition API reference.
See rekognition package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/rekognition/
Using the Client ¶
To Amazon Rekognition with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Amazon Rekognition client Rekognition for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/rekognition/#New
Index ¶
- Constants
- type AgeRange
- type Attribute
- type Beard
- type BoundingBox
- type Celebrity
- type CelebrityDetail
- type CelebrityRecognition
- type CelebrityRecognitionSortBy
- type CompareFacesInput
- type CompareFacesMatch
- type CompareFacesOutput
- type CompareFacesRequest
- type ComparedFace
- type ComparedSourceImageFace
- type ContentModerationDetection
- type ContentModerationSortBy
- type CreateCollectionInput
- type CreateCollectionOutput
- type CreateCollectionRequest
- type CreateStreamProcessorInput
- type CreateStreamProcessorOutput
- type CreateStreamProcessorRequest
- type DeleteCollectionInput
- type DeleteCollectionOutput
- type DeleteCollectionRequest
- type DeleteFacesInput
- type DeleteFacesOutput
- type DeleteFacesRequest
- type DeleteStreamProcessorInput
- type DeleteStreamProcessorOutput
- type DeleteStreamProcessorRequest
- type DescribeStreamProcessorInput
- type DescribeStreamProcessorOutput
- type DescribeStreamProcessorRequest
- type DetectFacesInput
- type DetectFacesOutput
- type DetectFacesRequest
- type DetectLabelsInput
- type DetectLabelsOutput
- type DetectLabelsRequest
- type DetectModerationLabelsInput
- type DetectModerationLabelsOutput
- type DetectModerationLabelsRequest
- type DetectTextInput
- type DetectTextOutput
- type DetectTextRequest
- type Emotion
- type EmotionName
- type EyeOpen
- type Eyeglasses
- type Face
- type FaceAttributes
- type FaceDetail
- type FaceDetection
- type FaceMatch
- type FaceRecord
- type FaceSearchSettings
- type FaceSearchSortBy
- type Gender
- type GenderType
- type Geometry
- type GetCelebrityInfoInput
- type GetCelebrityInfoOutput
- type GetCelebrityInfoRequest
- type GetCelebrityRecognitionInput
- type GetCelebrityRecognitionOutput
- type GetCelebrityRecognitionPager
- type GetCelebrityRecognitionRequest
- type GetContentModerationInput
- type GetContentModerationOutput
- type GetContentModerationPager
- type GetContentModerationRequest
- type GetFaceDetectionInput
- type GetFaceDetectionOutput
- type GetFaceDetectionPager
- type GetFaceDetectionRequest
- type GetFaceSearchInput
- type GetFaceSearchOutput
- type GetFaceSearchPager
- type GetFaceSearchRequest
- type GetLabelDetectionInput
- type GetLabelDetectionOutput
- type GetLabelDetectionPager
- type GetLabelDetectionRequest
- type GetPersonTrackingInput
- type GetPersonTrackingOutput
- type GetPersonTrackingPager
- type GetPersonTrackingRequest
- type Image
- type ImageQuality
- type IndexFacesInput
- type IndexFacesOutput
- type IndexFacesRequest
- type KinesisDataStream
- type KinesisVideoStream
- type Label
- type LabelDetection
- type LabelDetectionSortBy
- type Landmark
- type LandmarkType
- type ListCollectionsInput
- type ListCollectionsOutput
- type ListCollectionsPager
- type ListCollectionsRequest
- type ListFacesInput
- type ListFacesOutput
- type ListFacesPager
- type ListFacesRequest
- type ListStreamProcessorsInput
- type ListStreamProcessorsOutput
- type ListStreamProcessorsPager
- type ListStreamProcessorsRequest
- type ModerationLabel
- type MouthOpen
- type Mustache
- type NotificationChannel
- type OrientationCorrection
- type PersonDetail
- type PersonDetection
- type PersonMatch
- type PersonTrackingSortBy
- type Point
- type Pose
- type RecognizeCelebritiesInput
- type RecognizeCelebritiesOutput
- type RecognizeCelebritiesRequest
- type Rekognition
- func (c *Rekognition) CompareFacesRequest(input *CompareFacesInput) CompareFacesRequest
- func (c *Rekognition) CreateCollectionRequest(input *CreateCollectionInput) CreateCollectionRequest
- func (c *Rekognition) CreateStreamProcessorRequest(input *CreateStreamProcessorInput) CreateStreamProcessorRequest
- func (c *Rekognition) DeleteCollectionRequest(input *DeleteCollectionInput) DeleteCollectionRequest
- func (c *Rekognition) DeleteFacesRequest(input *DeleteFacesInput) DeleteFacesRequest
- func (c *Rekognition) DeleteStreamProcessorRequest(input *DeleteStreamProcessorInput) DeleteStreamProcessorRequest
- func (c *Rekognition) DescribeStreamProcessorRequest(input *DescribeStreamProcessorInput) DescribeStreamProcessorRequest
- func (c *Rekognition) DetectFacesRequest(input *DetectFacesInput) DetectFacesRequest
- func (c *Rekognition) DetectLabelsRequest(input *DetectLabelsInput) DetectLabelsRequest
- func (c *Rekognition) DetectModerationLabelsRequest(input *DetectModerationLabelsInput) DetectModerationLabelsRequest
- func (c *Rekognition) DetectTextRequest(input *DetectTextInput) DetectTextRequest
- func (c *Rekognition) GetCelebrityInfoRequest(input *GetCelebrityInfoInput) GetCelebrityInfoRequest
- func (c *Rekognition) GetCelebrityRecognitionRequest(input *GetCelebrityRecognitionInput) GetCelebrityRecognitionRequest
- func (c *Rekognition) GetContentModerationRequest(input *GetContentModerationInput) GetContentModerationRequest
- func (c *Rekognition) GetFaceDetectionRequest(input *GetFaceDetectionInput) GetFaceDetectionRequest
- func (c *Rekognition) GetFaceSearchRequest(input *GetFaceSearchInput) GetFaceSearchRequest
- func (c *Rekognition) GetLabelDetectionRequest(input *GetLabelDetectionInput) GetLabelDetectionRequest
- func (c *Rekognition) GetPersonTrackingRequest(input *GetPersonTrackingInput) GetPersonTrackingRequest
- func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) IndexFacesRequest
- func (c *Rekognition) ListCollectionsRequest(input *ListCollectionsInput) ListCollectionsRequest
- func (c *Rekognition) ListFacesRequest(input *ListFacesInput) ListFacesRequest
- func (c *Rekognition) ListStreamProcessorsRequest(input *ListStreamProcessorsInput) ListStreamProcessorsRequest
- func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInput) RecognizeCelebritiesRequest
- func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) SearchFacesByImageRequest
- func (c *Rekognition) SearchFacesRequest(input *SearchFacesInput) SearchFacesRequest
- func (c *Rekognition) StartCelebrityRecognitionRequest(input *StartCelebrityRecognitionInput) StartCelebrityRecognitionRequest
- func (c *Rekognition) StartContentModerationRequest(input *StartContentModerationInput) StartContentModerationRequest
- func (c *Rekognition) StartFaceDetectionRequest(input *StartFaceDetectionInput) StartFaceDetectionRequest
- func (c *Rekognition) StartFaceSearchRequest(input *StartFaceSearchInput) StartFaceSearchRequest
- func (c *Rekognition) StartLabelDetectionRequest(input *StartLabelDetectionInput) StartLabelDetectionRequest
- func (c *Rekognition) StartPersonTrackingRequest(input *StartPersonTrackingInput) StartPersonTrackingRequest
- func (c *Rekognition) StartStreamProcessorRequest(input *StartStreamProcessorInput) StartStreamProcessorRequest
- func (c *Rekognition) StopStreamProcessorRequest(input *StopStreamProcessorInput) StopStreamProcessorRequest
- type S3Object
- type SearchFacesByImageInput
- type SearchFacesByImageOutput
- type SearchFacesByImageRequest
- type SearchFacesInput
- type SearchFacesOutput
- type SearchFacesRequest
- type Smile
- type StartCelebrityRecognitionInput
- type StartCelebrityRecognitionOutput
- type StartCelebrityRecognitionRequest
- type StartContentModerationInput
- type StartContentModerationOutput
- type StartContentModerationRequest
- type StartFaceDetectionInput
- type StartFaceDetectionOutput
- type StartFaceDetectionRequest
- type StartFaceSearchInput
- type StartFaceSearchOutput
- type StartFaceSearchRequest
- type StartLabelDetectionInput
- type StartLabelDetectionOutput
- type StartLabelDetectionRequest
- type StartPersonTrackingInput
- type StartPersonTrackingOutput
- type StartPersonTrackingRequest
- type StartStreamProcessorInput
- type StartStreamProcessorOutput
- type StartStreamProcessorRequest
- type StopStreamProcessorInput
- type StopStreamProcessorOutput
- type StopStreamProcessorRequest
- type StreamProcessor
- type StreamProcessorInput
- type StreamProcessorOutput
- type StreamProcessorSettings
- type StreamProcessorStatus
- type Sunglasses
- type TextDetection
- type TextTypes
- type Video
- type VideoJobStatus
- type VideoMetadata
Examples ¶
- Rekognition.CompareFacesRequest (Shared00)
- Rekognition.CreateCollectionRequest (Shared00)
- Rekognition.DeleteCollectionRequest (Shared00)
- Rekognition.DeleteFacesRequest (Shared00)
- Rekognition.DetectFacesRequest (Shared00)
- Rekognition.DetectLabelsRequest (Shared00)
- Rekognition.IndexFacesRequest (Shared00)
- Rekognition.ListCollectionsRequest (Shared00)
- Rekognition.ListFacesRequest (Shared00)
- Rekognition.SearchFacesByImageRequest (Shared00)
- Rekognition.SearchFacesRequest (Shared00)
Constants ¶
const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // You are not authorized to perform the action. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeIdempotentParameterMismatchException for service response error code // "IdempotentParameterMismatchException". // // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" // ErrCodeImageTooLargeException for service response error code // "ImageTooLargeException". // // The input image size exceeds the allowed limit. For more information, see // limits. ErrCodeImageTooLargeException = "ImageTooLargeException" // ErrCodeInternalServerError for service response error code // "InternalServerError". // // Amazon Rekognition experienced a service issue. Try your call again. ErrCodeInternalServerError = "InternalServerError" // ErrCodeInvalidImageFormatException for service response error code // "InvalidImageFormatException". // // The provided image format is not supported. ErrCodeInvalidImageFormatException = "InvalidImageFormatException" // ErrCodeInvalidPaginationTokenException for service response error code // "InvalidPaginationTokenException". // // Pagination token in the request is not valid. ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException" // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". // // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. ErrCodeInvalidParameterException = "InvalidParameterException" // ErrCodeInvalidS3ObjectException for service response error code // "InvalidS3ObjectException". // // Amazon Rekognition is unable to access the S3 object specified in the request. ErrCodeInvalidS3ObjectException = "InvalidS3ObjectException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeProvisionedThroughputExceededException for service response error code // "ProvisionedThroughputExceededException". // // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" // ErrCodeResourceAlreadyExistsException for service response error code // "ResourceAlreadyExistsException". // // A collection with the specified ID already exists. ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". ErrCodeResourceInUseException = "ResourceInUseException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The collection specified in the request cannot be found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // Amazon Rekognition is temporarily unable to process the request. Try your // call again. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeVideoTooLargeException for service response error code // "VideoTooLargeException". // // The file size or duration of the supplied media is too large. The maximum // file size is 8GB. The maximum duration is 2 hours. ErrCodeVideoTooLargeException = "VideoTooLargeException" )
const ( ServiceName = "rekognition" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgeRange ¶
type AgeRange struct { // The highest estimated age. High *int64 `type:"integer"` // The lowest estimated age. Low *int64 `type:"integer"` // contains filtered or unexported fields }
Structure containing the estimated age range, in years, for a face.
Rekognition estimates an age-range for faces detected in the input image. Estimated age ranges can overlap; a face of a 5 year old may have an estimated range of 4-6 whilst the face of a 6 year old may have an estimated range of 4-8.
type Beard ¶
type Beard struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Boolean value that indicates whether the face has beard or not. Value *bool `type:"boolean"` // contains filtered or unexported fields }
Indicates whether or not the face has a beard, and the confidence level in the determination.
type BoundingBox ¶
type BoundingBox struct { // Height of the bounding box as a ratio of the overall image height. Height *float64 `type:"float"` // Left coordinate of the bounding box as a ratio of overall image width. Left *float64 `type:"float"` // Top coordinate of the bounding box as a ratio of overall image height. Top *float64 `type:"float"` // Width of the bounding box as a ratio of the overall image width. Width *float64 `type:"float"` // contains filtered or unexported fields }
Identifies the bounding box around the object, face or text. The left (x-coordinate) and top (y-coordinate) are coordinates representing the top and left sides of the bounding box. Note that the upper-left corner of the image is the origin (0,0).
The top and left values returned are ratios of the overall image size. For example, if the input image is 700x200 pixels, and the top-left coordinate of the bounding box is 350x50 pixels, the API returns a left value of 0.5 (350/700) and a top value of 0.25 (50/200).
The width and height values represent the dimensions of the bounding box as a ratio of the overall image dimension. For example, if the input image is 700x200 pixels, and the bounding box width is 70 pixels, the width returned is 0.1.
The bounding box coordinates can have negative values. For example, if Amazon Rekognition is able to detect a face that is at the image edge and is only partially visible, the service can return coordinates that are outside the image bounds and, depending on the image edge, you might get negative values or values greater than 1 for the left or top values.
func (BoundingBox) GoString ¶
func (s BoundingBox) GoString() string
GoString returns the string representation
func (BoundingBox) String ¶
func (s BoundingBox) String() string
String returns the string representation
type Celebrity ¶
type Celebrity struct { // Provides information about the celebrity's face, such as its location on // the image. Face *ComparedFace `type:"structure"` // A unique identifier for the celebrity. Id *string `type:"string"` // The confidence, in percentage, that Rekognition has that the recognized face // is the celebrity. MatchConfidence *float64 `type:"float"` // The name of the celebrity. Name *string `type:"string"` // An array of URLs pointing to additional information about the celebrity. // If there is no additional information about the celebrity, this list is empty. Urls []string `type:"list"` // contains filtered or unexported fields }
Provides information about a celebrity recognized by the operation.
type CelebrityDetail ¶
type CelebrityDetail struct { // Bounding box around the body of a celebrity. BoundingBox *BoundingBox `type:"structure"` // The confidence, in percentage, that Amazon Rekognition has that the recognized // face is the celebrity. Confidence *float64 `type:"float"` // Face details for the recognized celebrity. Face *FaceDetail `type:"structure"` // The unique identifier for the celebrity. Id *string `type:"string"` // The name of the celebrity. Name *string `type:"string"` // An array of URLs pointing to additional celebrity information. Urls []string `type:"list"` // contains filtered or unexported fields }
Information about a recognized celebrity.
func (CelebrityDetail) GoString ¶
func (s CelebrityDetail) GoString() string
GoString returns the string representation
func (CelebrityDetail) String ¶
func (s CelebrityDetail) String() string
String returns the string representation
type CelebrityRecognition ¶
type CelebrityRecognition struct { // Information about a recognized celebrity. Celebrity *CelebrityDetail `type:"structure"` // The time, in milliseconds from the start of the video, that the celebrity // was recognized. Timestamp *int64 `type:"long"` // contains filtered or unexported fields }
Information about a detected celebrity and the time the celebrity was detected in a stored video. For more information, see .
func (CelebrityRecognition) GoString ¶
func (s CelebrityRecognition) GoString() string
GoString returns the string representation
func (CelebrityRecognition) String ¶
func (s CelebrityRecognition) String() string
String returns the string representation
type CelebrityRecognitionSortBy ¶
type CelebrityRecognitionSortBy string
const ( CelebrityRecognitionSortById CelebrityRecognitionSortBy = "ID" CelebrityRecognitionSortByTimestamp CelebrityRecognitionSortBy = "TIMESTAMP" )
Enum values for CelebrityRecognitionSortBy
func (CelebrityRecognitionSortBy) MarshalValue ¶
func (enum CelebrityRecognitionSortBy) MarshalValue() (string, error)
func (CelebrityRecognitionSortBy) MarshalValueBuf ¶
func (enum CelebrityRecognitionSortBy) MarshalValueBuf(b []byte) ([]byte, error)
type CompareFacesInput ¶
type CompareFacesInput struct { // The minimum level of confidence in the face matches that a match must meet // to be included in the FaceMatches array. SimilarityThreshold *float64 `type:"float"` // 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. // // SourceImage is a required field SourceImage *Image `type:"structure" required:"true"` // The target 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. // // TargetImage is a required field TargetImage *Image `type:"structure" required:"true"` // contains filtered or unexported fields }
func (CompareFacesInput) GoString ¶
func (s CompareFacesInput) GoString() string
GoString returns the string representation
func (CompareFacesInput) String ¶
func (s CompareFacesInput) String() string
String returns the string representation
func (*CompareFacesInput) Validate ¶
func (s *CompareFacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CompareFacesMatch ¶
type CompareFacesMatch struct { // Provides face metadata (bounding box and confidence that the bounding box // actually contains a face). Face *ComparedFace `type:"structure"` // Level of confidence that the faces match. Similarity *float64 `type:"float"` // contains filtered or unexported fields }
Provides information about a face in a target image that matches the source image face analysed by CompareFaces. The Face property contains the bounding box of the face in the target image. The Similarity property is the confidence that the source image face matches the face in the bounding box.
func (CompareFacesMatch) GoString ¶
func (s CompareFacesMatch) GoString() string
GoString returns the string representation
func (CompareFacesMatch) String ¶
func (s CompareFacesMatch) String() string
String returns the string representation
type CompareFacesOutput ¶
type CompareFacesOutput struct { // An array of faces in the target image that match the source image face. Each // CompareFacesMatch object provides the bounding box, the confidence level // that the bounding box contains a face, and the similarity score for the face // in the bounding box and the face in the source image. FaceMatches []CompareFacesMatch `type:"list"` // The face in the source image that was used for comparison. SourceImageFace *ComparedSourceImageFace `type:"structure"` // The orientation of the source image (counterclockwise direction). If your // application displays the source image, you can use this value to correct // image orientation. The bounding box coordinates returned in SourceImageFace // represent the location of the face before the image orientation is corrected. // // If the source image is in .jpeg format, it might contain exchangeable image // (Exif) metadata that includes the image's orientation. If the Exif metadata // for the source image populates the orientation field, the value of OrientationCorrection // is null and the SourceImageFace bounding box coordinates represent the location // of the face after Exif metadata is used to correct the orientation. Images // in .png format don't contain Exif metadata. SourceImageOrientationCorrection OrientationCorrection `type:"string" enum:"true"` // The orientation of the target image (in counterclockwise direction). If your // application displays the target image, you can use this value to correct // the orientation of the image. The bounding box coordinates returned in FaceMatches // and UnmatchedFaces represent face locations before the image orientation // is corrected. // // If the target image is in .jpg format, it might contain Exif metadata that // includes the orientation of the image. If the Exif metadata for the target // image populates the orientation field, the value of OrientationCorrection // is null and the bounding box coordinates in FaceMatches and UnmatchedFaces // represent the location of the face after Exif metadata is used to correct // the orientation. Images in .png format don't contain Exif metadata. TargetImageOrientationCorrection OrientationCorrection `type:"string" enum:"true"` // An array of faces in the target image that did not match the source image // face. UnmatchedFaces []ComparedFace `type:"list"` // contains filtered or unexported fields }
func (CompareFacesOutput) GoString ¶
func (s CompareFacesOutput) GoString() string
GoString returns the string representation
func (CompareFacesOutput) SDKResponseMetadata ¶
func (s CompareFacesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CompareFacesOutput) String ¶
func (s CompareFacesOutput) String() string
String returns the string representation
type CompareFacesRequest ¶
type CompareFacesRequest struct { *aws.Request Input *CompareFacesInput Copy func(*CompareFacesInput) CompareFacesRequest }
CompareFacesRequest is a API request type for the CompareFaces API operation.
func (CompareFacesRequest) Send ¶
func (r CompareFacesRequest) Send() (*CompareFacesOutput, error)
Send marshals and sends the CompareFaces API request.
type ComparedFace ¶
type ComparedFace struct { // Bounding box of the face. BoundingBox *BoundingBox `type:"structure"` // Level of confidence that what the bounding box contains is a face. Confidence *float64 `type:"float"` // An array of facial landmarks. Landmarks []Landmark `type:"list"` // Indicates the pose of the face as determined by its pitch, roll, and yaw. Pose *Pose `type:"structure"` // Identifies face image brightness and sharpness. Quality *ImageQuality `type:"structure"` // contains filtered or unexported fields }
Provides face metadata for target image faces that are analysed by CompareFaces and RecognizeCelebrities.
func (ComparedFace) GoString ¶
func (s ComparedFace) GoString() string
GoString returns the string representation
func (ComparedFace) String ¶
func (s ComparedFace) String() string
String returns the string representation
type ComparedSourceImageFace ¶
type ComparedSourceImageFace struct { // Bounding box of the face. BoundingBox *BoundingBox `type:"structure"` // Confidence level that the selected bounding box contains a face. Confidence *float64 `type:"float"` // contains filtered or unexported fields }
Type that describes the face Amazon Rekognition chose to compare with the faces in the target. This contains a bounding box for the selected face and confidence level that the bounding box contains a face. Note that Amazon Rekognition selects the largest face in the source image for this comparison.
func (ComparedSourceImageFace) GoString ¶
func (s ComparedSourceImageFace) GoString() string
GoString returns the string representation
func (ComparedSourceImageFace) String ¶
func (s ComparedSourceImageFace) String() string
String returns the string representation
type ContentModerationDetection ¶
type ContentModerationDetection struct { // The moderation label detected by in the stored video. ModerationLabel *ModerationLabel `type:"structure"` // Time, in milliseconds from the beginning of the video, that the moderation // label was detected. Timestamp *int64 `type:"long"` // contains filtered or unexported fields }
Information about a moderation label detection in a stored video.
func (ContentModerationDetection) GoString ¶
func (s ContentModerationDetection) GoString() string
GoString returns the string representation
func (ContentModerationDetection) String ¶
func (s ContentModerationDetection) String() string
String returns the string representation
type ContentModerationSortBy ¶
type ContentModerationSortBy string
const ( ContentModerationSortByName ContentModerationSortBy = "NAME" ContentModerationSortByTimestamp ContentModerationSortBy = "TIMESTAMP" )
Enum values for ContentModerationSortBy
func (ContentModerationSortBy) MarshalValue ¶
func (enum ContentModerationSortBy) MarshalValue() (string, error)
func (ContentModerationSortBy) MarshalValueBuf ¶
func (enum ContentModerationSortBy) MarshalValueBuf(b []byte) ([]byte, error)
type CreateCollectionInput ¶
type CreateCollectionInput struct { // ID for the collection that you are creating. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (CreateCollectionInput) GoString ¶
func (s CreateCollectionInput) GoString() string
GoString returns the string representation
func (CreateCollectionInput) String ¶
func (s CreateCollectionInput) String() string
String returns the string representation
func (*CreateCollectionInput) Validate ¶
func (s *CreateCollectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateCollectionOutput ¶
type CreateCollectionOutput struct { // Amazon Resource Name (ARN) of the collection. You can use this to manage // permissions on your resources. CollectionArn *string `type:"string"` // Version number of the face detection model associated with the collection // you are creating. FaceModelVersion *string `type:"string"` // HTTP status code indicating the result of the operation. StatusCode *int64 `type:"integer"` // contains filtered or unexported fields }
func (CreateCollectionOutput) GoString ¶
func (s CreateCollectionOutput) GoString() string
GoString returns the string representation
func (CreateCollectionOutput) SDKResponseMetadata ¶
func (s CreateCollectionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateCollectionOutput) String ¶
func (s CreateCollectionOutput) String() string
String returns the string representation
type CreateCollectionRequest ¶
type CreateCollectionRequest struct { *aws.Request Input *CreateCollectionInput Copy func(*CreateCollectionInput) CreateCollectionRequest }
CreateCollectionRequest is a API request type for the CreateCollection API operation.
func (CreateCollectionRequest) Send ¶
func (r CreateCollectionRequest) Send() (*CreateCollectionOutput, error)
Send marshals and sends the CreateCollection API request.
type CreateStreamProcessorInput ¶
type CreateStreamProcessorInput struct { // Kinesis video stream stream that provides the source streaming video. If // you are using the AWS CLI, the parameter name is StreamProcessorInput. // // Input is a required field Input *StreamProcessorInput `type:"structure" required:"true"` // An identifier you assign to the stream processor. You can use Name to manage // the stream processor. For example, you can get the current status of the // stream processor by calling . Name is idempotent. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // Kinesis data stream stream to which Rekognition Video puts the analysis results. // If you are using the AWS CLI, the parameter name is StreamProcessorOutput. // // Output is a required field Output *StreamProcessorOutput `type:"structure" required:"true"` // ARN of the IAM role that allows access to the stream processor. // // RoleArn is a required field RoleArn *string `type:"string" required:"true"` // Face recognition input parameters to be used by the stream processor. Includes // the collection to use for face recognition and the face attributes to detect. // // Settings is a required field Settings *StreamProcessorSettings `type:"structure" required:"true"` // contains filtered or unexported fields }
func (CreateStreamProcessorInput) GoString ¶
func (s CreateStreamProcessorInput) GoString() string
GoString returns the string representation
func (CreateStreamProcessorInput) String ¶
func (s CreateStreamProcessorInput) String() string
String returns the string representation
func (*CreateStreamProcessorInput) Validate ¶
func (s *CreateStreamProcessorInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateStreamProcessorOutput ¶
type CreateStreamProcessorOutput struct { // ARN for the newly create stream processor. StreamProcessorArn *string `type:"string"` // contains filtered or unexported fields }
func (CreateStreamProcessorOutput) GoString ¶
func (s CreateStreamProcessorOutput) GoString() string
GoString returns the string representation
func (CreateStreamProcessorOutput) SDKResponseMetadata ¶
func (s CreateStreamProcessorOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateStreamProcessorOutput) String ¶
func (s CreateStreamProcessorOutput) String() string
String returns the string representation
type CreateStreamProcessorRequest ¶
type CreateStreamProcessorRequest struct { *aws.Request Input *CreateStreamProcessorInput Copy func(*CreateStreamProcessorInput) CreateStreamProcessorRequest }
CreateStreamProcessorRequest is a API request type for the CreateStreamProcessor API operation.
func (CreateStreamProcessorRequest) Send ¶
func (r CreateStreamProcessorRequest) Send() (*CreateStreamProcessorOutput, error)
Send marshals and sends the CreateStreamProcessor API request.
type DeleteCollectionInput ¶
type DeleteCollectionInput struct { // ID of the collection to delete. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteCollectionInput) GoString ¶
func (s DeleteCollectionInput) GoString() string
GoString returns the string representation
func (DeleteCollectionInput) String ¶
func (s DeleteCollectionInput) String() string
String returns the string representation
func (*DeleteCollectionInput) Validate ¶
func (s *DeleteCollectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteCollectionOutput ¶
type DeleteCollectionOutput struct { // HTTP status code that indicates the result of the operation. StatusCode *int64 `type:"integer"` // contains filtered or unexported fields }
func (DeleteCollectionOutput) GoString ¶
func (s DeleteCollectionOutput) GoString() string
GoString returns the string representation
func (DeleteCollectionOutput) SDKResponseMetadata ¶
func (s DeleteCollectionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteCollectionOutput) String ¶
func (s DeleteCollectionOutput) String() string
String returns the string representation
type DeleteCollectionRequest ¶
type DeleteCollectionRequest struct { *aws.Request Input *DeleteCollectionInput Copy func(*DeleteCollectionInput) DeleteCollectionRequest }
DeleteCollectionRequest is a API request type for the DeleteCollection API operation.
func (DeleteCollectionRequest) Send ¶
func (r DeleteCollectionRequest) Send() (*DeleteCollectionOutput, error)
Send marshals and sends the DeleteCollection API request.
type DeleteFacesInput ¶
type DeleteFacesInput struct { // Collection from which to remove the specific faces. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // An array of face IDs to delete. // // FaceIds is a required field FaceIds []string `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (DeleteFacesInput) GoString ¶
func (s DeleteFacesInput) GoString() string
GoString returns the string representation
func (DeleteFacesInput) String ¶
func (s DeleteFacesInput) String() string
String returns the string representation
func (*DeleteFacesInput) Validate ¶
func (s *DeleteFacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFacesOutput ¶
type DeleteFacesOutput struct { // An array of strings (face IDs) of the faces that were deleted. DeletedFaces []string `min:"1" type:"list"` // contains filtered or unexported fields }
func (DeleteFacesOutput) GoString ¶
func (s DeleteFacesOutput) GoString() string
GoString returns the string representation
func (DeleteFacesOutput) SDKResponseMetadata ¶
func (s DeleteFacesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteFacesOutput) String ¶
func (s DeleteFacesOutput) String() string
String returns the string representation
type DeleteFacesRequest ¶
type DeleteFacesRequest struct { *aws.Request Input *DeleteFacesInput Copy func(*DeleteFacesInput) DeleteFacesRequest }
DeleteFacesRequest is a API request type for the DeleteFaces API operation.
func (DeleteFacesRequest) Send ¶
func (r DeleteFacesRequest) Send() (*DeleteFacesOutput, error)
Send marshals and sends the DeleteFaces API request.
type DeleteStreamProcessorInput ¶
type DeleteStreamProcessorInput struct { // The name of the stream processor you want to delete. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteStreamProcessorInput) GoString ¶
func (s DeleteStreamProcessorInput) GoString() string
GoString returns the string representation
func (DeleteStreamProcessorInput) String ¶
func (s DeleteStreamProcessorInput) String() string
String returns the string representation
func (*DeleteStreamProcessorInput) Validate ¶
func (s *DeleteStreamProcessorInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteStreamProcessorOutput ¶
type DeleteStreamProcessorOutput struct {
// contains filtered or unexported fields
}
func (DeleteStreamProcessorOutput) GoString ¶
func (s DeleteStreamProcessorOutput) GoString() string
GoString returns the string representation
func (DeleteStreamProcessorOutput) SDKResponseMetadata ¶
func (s DeleteStreamProcessorOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteStreamProcessorOutput) String ¶
func (s DeleteStreamProcessorOutput) String() string
String returns the string representation
type DeleteStreamProcessorRequest ¶
type DeleteStreamProcessorRequest struct { *aws.Request Input *DeleteStreamProcessorInput Copy func(*DeleteStreamProcessorInput) DeleteStreamProcessorRequest }
DeleteStreamProcessorRequest is a API request type for the DeleteStreamProcessor API operation.
func (DeleteStreamProcessorRequest) Send ¶
func (r DeleteStreamProcessorRequest) Send() (*DeleteStreamProcessorOutput, error)
Send marshals and sends the DeleteStreamProcessor API request.
type DescribeStreamProcessorInput ¶
type DescribeStreamProcessorInput struct { // Name of the stream processor for which you want information. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeStreamProcessorInput) GoString ¶
func (s DescribeStreamProcessorInput) GoString() string
GoString returns the string representation
func (DescribeStreamProcessorInput) String ¶
func (s DescribeStreamProcessorInput) String() string
String returns the string representation
func (*DescribeStreamProcessorInput) Validate ¶
func (s *DescribeStreamProcessorInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeStreamProcessorOutput ¶
type DescribeStreamProcessorOutput struct { // Date and time the stream processor was created CreationTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` // Kinesis video stream that provides the source streaming video. Input *StreamProcessorInput `type:"structure"` // The time, in Unix format, the stream processor was last updated. For example, // when the stream processor moves from a running state to a failed state, or // when the user starts or stops the stream processor. LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` // Name of the stream processor. Name *string `min:"1" type:"string"` // Kinesis data stream to which Rekognition Video puts the analysis results. Output *StreamProcessorOutput `type:"structure"` // ARN of the IAM role that allows access to the stream processor. RoleArn *string `type:"string"` // Face recognition input parameters that are being used by the stream processor. // Includes the collection to use for face recognition and the face attributes // to detect. Settings *StreamProcessorSettings `type:"structure"` // Current status of the stream processor. Status StreamProcessorStatus `type:"string" enum:"true"` // Detailed status message about the stream processor. StatusMessage *string `type:"string"` // ARN of the stream processor. StreamProcessorArn *string `type:"string"` // contains filtered or unexported fields }
func (DescribeStreamProcessorOutput) GoString ¶
func (s DescribeStreamProcessorOutput) GoString() string
GoString returns the string representation
func (DescribeStreamProcessorOutput) SDKResponseMetadata ¶
func (s DescribeStreamProcessorOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DescribeStreamProcessorOutput) String ¶
func (s DescribeStreamProcessorOutput) String() string
String returns the string representation
type DescribeStreamProcessorRequest ¶
type DescribeStreamProcessorRequest struct { *aws.Request Input *DescribeStreamProcessorInput Copy func(*DescribeStreamProcessorInput) DescribeStreamProcessorRequest }
DescribeStreamProcessorRequest is a API request type for the DescribeStreamProcessor API operation.
func (DescribeStreamProcessorRequest) Send ¶
func (r DescribeStreamProcessorRequest) Send() (*DescribeStreamProcessorOutput, error)
Send marshals and sends the DescribeStreamProcessor API request.
type DetectFacesInput ¶
type DetectFacesInput struct { // An array of facial attributes 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). Attributes []Attribute `type:"list"` // 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. // // Image is a required field Image *Image `type:"structure" required:"true"` // contains filtered or unexported fields }
func (DetectFacesInput) GoString ¶
func (s DetectFacesInput) GoString() string
GoString returns the string representation
func (DetectFacesInput) String ¶
func (s DetectFacesInput) String() string
String returns the string representation
func (*DetectFacesInput) Validate ¶
func (s *DetectFacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetectFacesOutput ¶
type DetectFacesOutput struct { // Details of each face found in the image. FaceDetails []FaceDetail `type:"list"` // The orientation of the input image (counter-clockwise direction). If your // application displays the image, you can use this value to correct image orientation. // The bounding box coordinates returned in FaceDetails represent face locations // before the image orientation is corrected. // // If the input image is in .jpeg format, it might contain exchangeable image // (Exif) metadata that includes the image's orientation. If so, and the Exif // metadata for the input image populates the orientation field, the value of // OrientationCorrection is null and the FaceDetails bounding box coordinates // represent face locations after Exif metadata is used to correct the image // orientation. Images in .png format don't contain Exif metadata. OrientationCorrection OrientationCorrection `type:"string" enum:"true"` // contains filtered or unexported fields }
func (DetectFacesOutput) GoString ¶
func (s DetectFacesOutput) GoString() string
GoString returns the string representation
func (DetectFacesOutput) SDKResponseMetadata ¶
func (s DetectFacesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DetectFacesOutput) String ¶
func (s DetectFacesOutput) String() string
String returns the string representation
type DetectFacesRequest ¶
type DetectFacesRequest struct { *aws.Request Input *DetectFacesInput Copy func(*DetectFacesInput) DetectFacesRequest }
DetectFacesRequest is a API request type for the DetectFaces API operation.
func (DetectFacesRequest) Send ¶
func (r DetectFacesRequest) Send() (*DetectFacesOutput, error)
Send marshals and sends the DetectFaces API request.
type DetectLabelsInput ¶
type DetectLabelsInput struct { // 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. // // Image is a required field Image *Image `type:"structure" required:"true"` // Maximum number of labels you want the service to return in the response. // The service returns the specified number of highest confidence labels. MaxLabels *int64 `type:"integer"` // Specifies the minimum confidence level for the labels to return. Amazon Rekognition // doesn't return any labels with confidence lower than this specified value. // // If MinConfidence is not specified, the operation returns labels with a confidence // values greater than or equal to 50 percent. MinConfidence *float64 `type:"float"` // contains filtered or unexported fields }
func (DetectLabelsInput) GoString ¶
func (s DetectLabelsInput) GoString() string
GoString returns the string representation
func (DetectLabelsInput) String ¶
func (s DetectLabelsInput) String() string
String returns the string representation
func (*DetectLabelsInput) Validate ¶
func (s *DetectLabelsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetectLabelsOutput ¶
type DetectLabelsOutput struct { // An array of labels for the real-world objects detected. Labels []Label `type:"list"` // The orientation of the input image (counter-clockwise direction). If your // application displays the image, you can use this value to correct the orientation. // If Amazon Rekognition detects that the input image was rotated (for example, // by 90 degrees), it first corrects the orientation before detecting the labels. // // If the input image Exif metadata populates the orientation field, Amazon // Rekognition does not perform orientation correction and the value of OrientationCorrection // will be null. OrientationCorrection OrientationCorrection `type:"string" enum:"true"` // contains filtered or unexported fields }
func (DetectLabelsOutput) GoString ¶
func (s DetectLabelsOutput) GoString() string
GoString returns the string representation
func (DetectLabelsOutput) SDKResponseMetadata ¶
func (s DetectLabelsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DetectLabelsOutput) String ¶
func (s DetectLabelsOutput) String() string
String returns the string representation
type DetectLabelsRequest ¶
type DetectLabelsRequest struct { *aws.Request Input *DetectLabelsInput Copy func(*DetectLabelsInput) DetectLabelsRequest }
DetectLabelsRequest is a API request type for the DetectLabels API operation.
func (DetectLabelsRequest) Send ¶
func (r DetectLabelsRequest) Send() (*DetectLabelsOutput, error)
Send marshals and sends the DetectLabels API request.
type DetectModerationLabelsInput ¶
type DetectModerationLabelsInput struct { // 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. // // Image is a required field Image *Image `type:"structure" required:"true"` // 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. MinConfidence *float64 `type:"float"` // contains filtered or unexported fields }
func (DetectModerationLabelsInput) GoString ¶
func (s DetectModerationLabelsInput) GoString() string
GoString returns the string representation
func (DetectModerationLabelsInput) String ¶
func (s DetectModerationLabelsInput) String() string
String returns the string representation
func (*DetectModerationLabelsInput) Validate ¶
func (s *DetectModerationLabelsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetectModerationLabelsOutput ¶
type DetectModerationLabelsOutput struct { // Array of detected Moderation labels and the time, in millseconds from the // start of the video, they were detected. ModerationLabels []ModerationLabel `type:"list"` // contains filtered or unexported fields }
func (DetectModerationLabelsOutput) GoString ¶
func (s DetectModerationLabelsOutput) GoString() string
GoString returns the string representation
func (DetectModerationLabelsOutput) SDKResponseMetadata ¶
func (s DetectModerationLabelsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DetectModerationLabelsOutput) String ¶
func (s DetectModerationLabelsOutput) String() string
String returns the string representation
type DetectModerationLabelsRequest ¶
type DetectModerationLabelsRequest struct { *aws.Request Input *DetectModerationLabelsInput Copy func(*DetectModerationLabelsInput) DetectModerationLabelsRequest }
DetectModerationLabelsRequest is a API request type for the DetectModerationLabels API operation.
func (DetectModerationLabelsRequest) Send ¶
func (r DetectModerationLabelsRequest) Send() (*DetectModerationLabelsOutput, error)
Send marshals and sends the DetectModerationLabels API request.
type DetectTextInput ¶
type DetectTextInput struct { // The input image as base64-encoded bytes or an Amazon S3 object. If you use // the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes. // // Image is a required field Image *Image `type:"structure" required:"true"` // contains filtered or unexported fields }
func (DetectTextInput) GoString ¶
func (s DetectTextInput) GoString() string
GoString returns the string representation
func (DetectTextInput) String ¶
func (s DetectTextInput) String() string
String returns the string representation
func (*DetectTextInput) Validate ¶
func (s *DetectTextInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetectTextOutput ¶
type DetectTextOutput struct { // An array of text that was detected in the input image. TextDetections []TextDetection `type:"list"` // contains filtered or unexported fields }
func (DetectTextOutput) GoString ¶
func (s DetectTextOutput) GoString() string
GoString returns the string representation
func (DetectTextOutput) SDKResponseMetadata ¶
func (s DetectTextOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DetectTextOutput) String ¶
func (s DetectTextOutput) String() string
String returns the string representation
type DetectTextRequest ¶
type DetectTextRequest struct { *aws.Request Input *DetectTextInput Copy func(*DetectTextInput) DetectTextRequest }
DetectTextRequest is a API request type for the DetectText API operation.
func (DetectTextRequest) Send ¶
func (r DetectTextRequest) Send() (*DetectTextOutput, error)
Send marshals and sends the DetectText API request.
type Emotion ¶
type Emotion struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Type of emotion detected. Type EmotionName `type:"string" enum:"true"` // contains filtered or unexported fields }
The emotions detected on the face, and the confidence level in the determination. For example, HAPPY, SAD, and ANGRY.
type EmotionName ¶
type EmotionName string
const ( EmotionNameHappy EmotionName = "HAPPY" EmotionNameSad EmotionName = "SAD" EmotionNameAngry EmotionName = "ANGRY" EmotionNameConfused EmotionName = "CONFUSED" EmotionNameDisgusted EmotionName = "DISGUSTED" EmotionNameSurprised EmotionName = "SURPRISED" EmotionNameCalm EmotionName = "CALM" EmotionNameUnknown EmotionName = "UNKNOWN" )
Enum values for EmotionName
func (EmotionName) MarshalValue ¶
func (enum EmotionName) MarshalValue() (string, error)
func (EmotionName) MarshalValueBuf ¶
func (enum EmotionName) MarshalValueBuf(b []byte) ([]byte, error)
type EyeOpen ¶
type EyeOpen struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Boolean value that indicates whether the eyes on the face are open. Value *bool `type:"boolean"` // contains filtered or unexported fields }
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
type Eyeglasses ¶
type Eyeglasses struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Boolean value that indicates whether the face is wearing eye glasses or not. Value *bool `type:"boolean"` // contains filtered or unexported fields }
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
func (Eyeglasses) GoString ¶
func (s Eyeglasses) GoString() string
GoString returns the string representation
func (Eyeglasses) String ¶
func (s Eyeglasses) String() string
String returns the string representation
type Face ¶
type Face struct { // Bounding box of the face. BoundingBox *BoundingBox `type:"structure"` // Confidence level that the bounding box contains a face (and not a different // object such as a tree). Confidence *float64 `type:"float"` // Identifier that you assign to all the faces in the input image. ExternalImageId *string `min:"1" type:"string"` // Unique identifier that Amazon Rekognition assigns to the face. FaceId *string `type:"string"` // Unique identifier that Amazon Rekognition assigns to the input image. ImageId *string `type:"string"` // contains filtered or unexported fields }
Describes the face properties such as the bounding box, face ID, image ID of the input image, and external image ID that you assigned.
type FaceAttributes ¶
type FaceAttributes string
const ( FaceAttributesDefault FaceAttributes = "DEFAULT" FaceAttributesAll FaceAttributes = "ALL" )
Enum values for FaceAttributes
func (FaceAttributes) MarshalValue ¶
func (enum FaceAttributes) MarshalValue() (string, error)
func (FaceAttributes) MarshalValueBuf ¶
func (enum FaceAttributes) MarshalValueBuf(b []byte) ([]byte, error)
type FaceDetail ¶
type FaceDetail struct { // The estimated age range, in years, for the face. Low represents the lowest // estimated age and High represents the highest estimated age. AgeRange *AgeRange `type:"structure"` // Indicates whether or not the face has a beard, and the confidence level in // the determination. Beard *Beard `type:"structure"` // Bounding box of the face. BoundingBox *BoundingBox `type:"structure"` // Confidence level that the bounding box contains a face (and not a different // object such as a tree). Confidence *float64 `type:"float"` // The emotions detected on the face, and the confidence level in the determination. // For example, HAPPY, SAD, and ANGRY. Emotions []Emotion `type:"list"` // Indicates whether or not the face is wearing eye glasses, and the confidence // level in the determination. Eyeglasses *Eyeglasses `type:"structure"` // Indicates whether or not the eyes on the face are open, and the confidence // level in the determination. EyesOpen *EyeOpen `type:"structure"` // Gender of the face and the confidence level in the determination. Gender *Gender `type:"structure"` // Indicates the location of landmarks on the face. Landmarks []Landmark `type:"list"` // Indicates whether or not the mouth on the face is open, and the confidence // level in the determination. MouthOpen *MouthOpen `type:"structure"` // Indicates whether or not the face has a mustache, and the confidence level // in the determination. Mustache *Mustache `type:"structure"` // Indicates the pose of the face as determined by its pitch, roll, and yaw. Pose *Pose `type:"structure"` // Identifies image brightness and sharpness. Quality *ImageQuality `type:"structure"` // Indicates whether or not the face is smiling, and the confidence level in // the determination. Smile *Smile `type:"structure"` // Indicates whether or not the face is wearing sunglasses, and the confidence // level in the determination. Sunglasses *Sunglasses `type:"structure"` // contains filtered or unexported fields }
Structure containing attributes of the face that the algorithm detected.
func (FaceDetail) GoString ¶
func (s FaceDetail) GoString() string
GoString returns the string representation
func (FaceDetail) String ¶
func (s FaceDetail) String() string
String returns the string representation
type FaceDetection ¶
type FaceDetection struct { // The face properties for the detected face. Face *FaceDetail `type:"structure"` // Time, in milliseconds from the start of the video, that the face was detected. Timestamp *int64 `type:"long"` // contains filtered or unexported fields }
Information about a face detected in a video analysis request and the time the face was detected in the video.
func (FaceDetection) GoString ¶
func (s FaceDetection) GoString() string
GoString returns the string representation
func (FaceDetection) String ¶
func (s FaceDetection) String() string
String returns the string representation
type FaceMatch ¶
type FaceMatch struct { // Describes the face properties such as the bounding box, face ID, image ID // of the source image, and external image ID that you assigned. Face *Face `type:"structure"` // Confidence in the match of this face with the input face. Similarity *float64 `type:"float"` // contains filtered or unexported fields }
Provides face metadata. In addition, it also provides the confidence in the match of this face with the input face.
type FaceRecord ¶
type FaceRecord struct { // Describes the face properties such as the bounding box, face ID, image ID // of the input image, and external image ID that you assigned. Face *Face `type:"structure"` // Structure containing attributes of the face that the algorithm detected. FaceDetail *FaceDetail `type:"structure"` // contains filtered or unexported fields }
Object containing both the face metadata (stored in the back-end database) and facial attributes that are detected but aren't stored in the database.
func (FaceRecord) GoString ¶
func (s FaceRecord) GoString() string
GoString returns the string representation
func (FaceRecord) String ¶
func (s FaceRecord) String() string
String returns the string representation
type FaceSearchSettings ¶
type FaceSearchSettings struct { // The ID of a collection that contains faces that you want to search for. CollectionId *string `min:"1" type:"string"` // Minimum face match confidence score that must be met to return a result for // a recognized face. Default is 70. 0 is the lowest confidence. 100 is the // highest confidence. FaceMatchThreshold *float64 `type:"float"` // contains filtered or unexported fields }
Input face recognition parameters for an Amazon Rekognition stream processor. FaceRecognitionSettings is a request parameter for .
func (FaceSearchSettings) GoString ¶
func (s FaceSearchSettings) GoString() string
GoString returns the string representation
func (FaceSearchSettings) String ¶
func (s FaceSearchSettings) String() string
String returns the string representation
func (*FaceSearchSettings) Validate ¶
func (s *FaceSearchSettings) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FaceSearchSortBy ¶
type FaceSearchSortBy string
const ( FaceSearchSortByIndex FaceSearchSortBy = "INDEX" FaceSearchSortByTimestamp FaceSearchSortBy = "TIMESTAMP" )
Enum values for FaceSearchSortBy
func (FaceSearchSortBy) MarshalValue ¶
func (enum FaceSearchSortBy) MarshalValue() (string, error)
func (FaceSearchSortBy) MarshalValueBuf ¶
func (enum FaceSearchSortBy) MarshalValueBuf(b []byte) ([]byte, error)
type Gender ¶
type Gender struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Gender of the face. Value GenderType `type:"string" enum:"true"` // contains filtered or unexported fields }
Gender of the face and the confidence level in the determination.
type GenderType ¶
type GenderType string
const ( GenderTypeMale GenderType = "Male" GenderTypeFemale GenderType = "Female" )
Enum values for GenderType
func (GenderType) MarshalValue ¶
func (enum GenderType) MarshalValue() (string, error)
func (GenderType) MarshalValueBuf ¶
func (enum GenderType) MarshalValueBuf(b []byte) ([]byte, error)
type Geometry ¶
type Geometry struct { // An axis-aligned coarse representation of the detected text's location on // the image. BoundingBox *BoundingBox `type:"structure"` // Within the bounding box, a fine-grained polygon around the detected text. Polygon []Point `type:"list"` // contains filtered or unexported fields }
Information about where text detected by is located on an image.
type GetCelebrityInfoInput ¶
type GetCelebrityInfoInput struct { // The ID for the celebrity. You get the celebrity ID from a call to the operation, // which recognizes celebrities in an image. // // Id is a required field Id *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (GetCelebrityInfoInput) GoString ¶
func (s GetCelebrityInfoInput) GoString() string
GoString returns the string representation
func (GetCelebrityInfoInput) String ¶
func (s GetCelebrityInfoInput) String() string
String returns the string representation
func (*GetCelebrityInfoInput) Validate ¶
func (s *GetCelebrityInfoInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetCelebrityInfoOutput ¶
type GetCelebrityInfoOutput struct { // The name of the celebrity. Name *string `type:"string"` // An array of URLs pointing to additional celebrity information. Urls []string `type:"list"` // contains filtered or unexported fields }
func (GetCelebrityInfoOutput) GoString ¶
func (s GetCelebrityInfoOutput) GoString() string
GoString returns the string representation
func (GetCelebrityInfoOutput) SDKResponseMetadata ¶
func (s GetCelebrityInfoOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetCelebrityInfoOutput) String ¶
func (s GetCelebrityInfoOutput) String() string
String returns the string representation
type GetCelebrityInfoRequest ¶
type GetCelebrityInfoRequest struct { *aws.Request Input *GetCelebrityInfoInput Copy func(*GetCelebrityInfoInput) GetCelebrityInfoRequest }
GetCelebrityInfoRequest is a API request type for the GetCelebrityInfo API operation.
func (GetCelebrityInfoRequest) Send ¶
func (r GetCelebrityInfoRequest) Send() (*GetCelebrityInfoOutput, error)
Send marshals and sends the GetCelebrityInfo API request.
type GetCelebrityRecognitionInput ¶
type GetCelebrityRecognitionInput struct { // Job identifier for the required celebrity recognition analysis. You can get // the job identifer from a call to StartCelebrityRecognition. // // JobId is a required field JobId *string `min:"1" type:"string" required:"true"` // Maximum number of celebrities you want Rekognition Video to return in the // response. The default is 1000. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there is more recognized // celebrities to retrieve), Rekognition Video returns a pagination token in // the response. You can use this pagination token to retrieve the next set // of celebrities. NextToken *string `type:"string"` // Sort to use for celebrities returned in Celebrities field. Specify ID to // sort by the celebrity identifier, specify TIMESTAMP to sort by the time the // celebrity was recognized. SortBy CelebrityRecognitionSortBy `type:"string" enum:"true"` // contains filtered or unexported fields }
func (GetCelebrityRecognitionInput) GoString ¶
func (s GetCelebrityRecognitionInput) GoString() string
GoString returns the string representation
func (GetCelebrityRecognitionInput) String ¶
func (s GetCelebrityRecognitionInput) String() string
String returns the string representation
func (*GetCelebrityRecognitionInput) Validate ¶
func (s *GetCelebrityRecognitionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetCelebrityRecognitionOutput ¶
type GetCelebrityRecognitionOutput struct { // Array of celebrities recognized in the video. Celebrities []CelebrityRecognition `type:"list"` // The current status of the celebrity recognition job. JobStatus VideoJobStatus `type:"string" enum:"true"` // If the response is truncated, Rekognition Video returns this token that you // can use in the subsequent request to retrieve the next set of celebrities. NextToken *string `type:"string"` // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string `type:"string"` // Information about a video that Rekognition Video analyzed. Videometadata // is returned in every page of paginated responses from a Rekognition Video // operation. VideoMetadata *VideoMetadata `type:"structure"` // contains filtered or unexported fields }
func (GetCelebrityRecognitionOutput) GoString ¶
func (s GetCelebrityRecognitionOutput) GoString() string
GoString returns the string representation
func (GetCelebrityRecognitionOutput) SDKResponseMetadata ¶
func (s GetCelebrityRecognitionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetCelebrityRecognitionOutput) String ¶
func (s GetCelebrityRecognitionOutput) String() string
String returns the string representation
type GetCelebrityRecognitionPager ¶
GetCelebrityRecognitionPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetCelebrityRecognitionPager) CurrentPage ¶
func (p *GetCelebrityRecognitionPager) CurrentPage() *GetCelebrityRecognitionOutput
type GetCelebrityRecognitionRequest ¶
type GetCelebrityRecognitionRequest struct { *aws.Request Input *GetCelebrityRecognitionInput Copy func(*GetCelebrityRecognitionInput) GetCelebrityRecognitionRequest }
GetCelebrityRecognitionRequest is a API request type for the GetCelebrityRecognition API operation.
func (*GetCelebrityRecognitionRequest) Paginate ¶
func (p *GetCelebrityRecognitionRequest) Paginate(opts ...aws.Option) GetCelebrityRecognitionPager
Paginate pages iterates over the pages of a GetCelebrityRecognitionRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetCelebrityRecognition operation. req := client.GetCelebrityRecognitionRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetCelebrityRecognitionRequest) Send ¶
func (r GetCelebrityRecognitionRequest) Send() (*GetCelebrityRecognitionOutput, error)
Send marshals and sends the GetCelebrityRecognition API request.
type GetContentModerationInput ¶
type GetContentModerationInput struct { // The identifier for the content moderation job. Use JobId to identify the // job in a subsequent call to GetContentModeration. // // JobId is a required field JobId *string `min:"1" type:"string" required:"true"` // Maximum number of content moderation labels to return. The default is 1000. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Rekognition returns a pagination token in the response. You can use // this pagination token to retrieve the next set of content moderation labels. NextToken *string `type:"string"` // Sort to use for elements in the ModerationLabelDetections array. Use TIMESTAMP // to sort array elements by the time labels are detected. Use NAME to alphabetically // group elements for a label together. Within each label group, the array element // are sorted by detection confidence. The default sort is by TIMESTAMP. SortBy ContentModerationSortBy `type:"string" enum:"true"` // contains filtered or unexported fields }
func (GetContentModerationInput) GoString ¶
func (s GetContentModerationInput) GoString() string
GoString returns the string representation
func (GetContentModerationInput) String ¶
func (s GetContentModerationInput) String() string
String returns the string representation
func (*GetContentModerationInput) Validate ¶
func (s *GetContentModerationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetContentModerationOutput ¶
type GetContentModerationOutput struct { // The current status of the content moderation job. JobStatus VideoJobStatus `type:"string" enum:"true"` // The detected moderation labels and the time(s) they were detected. ModerationLabels []ContentModerationDetection `type:"list"` // If the response is truncated, Rekognition Video returns this token that you // can use in the subsequent request to retrieve the next set of moderation // labels. NextToken *string `type:"string"` // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string `type:"string"` // Information about a video that Amazon Rekognition analyzed. Videometadata // is returned in every page of paginated responses from GetContentModeration. VideoMetadata *VideoMetadata `type:"structure"` // contains filtered or unexported fields }
func (GetContentModerationOutput) GoString ¶
func (s GetContentModerationOutput) GoString() string
GoString returns the string representation
func (GetContentModerationOutput) SDKResponseMetadata ¶
func (s GetContentModerationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetContentModerationOutput) String ¶
func (s GetContentModerationOutput) String() string
String returns the string representation
type GetContentModerationPager ¶
GetContentModerationPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetContentModerationPager) CurrentPage ¶
func (p *GetContentModerationPager) CurrentPage() *GetContentModerationOutput
type GetContentModerationRequest ¶
type GetContentModerationRequest struct { *aws.Request Input *GetContentModerationInput Copy func(*GetContentModerationInput) GetContentModerationRequest }
GetContentModerationRequest is a API request type for the GetContentModeration API operation.
func (*GetContentModerationRequest) Paginate ¶
func (p *GetContentModerationRequest) Paginate(opts ...aws.Option) GetContentModerationPager
Paginate pages iterates over the pages of a GetContentModerationRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetContentModeration operation. req := client.GetContentModerationRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetContentModerationRequest) Send ¶
func (r GetContentModerationRequest) Send() (*GetContentModerationOutput, error)
Send marshals and sends the GetContentModeration API request.
type GetFaceDetectionInput ¶
type GetFaceDetectionInput struct { // Unique identifier for the face detection job. The JobId is returned from // StartFaceDetection. // // JobId is a required field JobId *string `min:"1" type:"string" required:"true"` // Maximum number of detected faces to return. The default is 1000. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there are more faces to // retrieve), Rekognition Video returns a pagination token in the response. // You can use this pagination token to retrieve the next set of faces. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (GetFaceDetectionInput) GoString ¶
func (s GetFaceDetectionInput) GoString() string
GoString returns the string representation
func (GetFaceDetectionInput) String ¶
func (s GetFaceDetectionInput) String() string
String returns the string representation
func (*GetFaceDetectionInput) Validate ¶
func (s *GetFaceDetectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFaceDetectionOutput ¶
type GetFaceDetectionOutput struct { // An array of faces detected in the video. Each element contains a detected // face's details and the time, in milliseconds from the start of the video, // the face was detected. Faces []FaceDetection `type:"list"` // The current status of the face detection job. JobStatus VideoJobStatus `type:"string" enum:"true"` // If the response is truncated, Amazon Rekognition returns this token that // you can use in the subsequent request to retrieve the next set of faces. NextToken *string `type:"string"` // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string `type:"string"` // Information about a video that Rekognition Video analyzed. Videometadata // is returned in every page of paginated responses from a Amazon Rekognition // video operation. VideoMetadata *VideoMetadata `type:"structure"` // contains filtered or unexported fields }
func (GetFaceDetectionOutput) GoString ¶
func (s GetFaceDetectionOutput) GoString() string
GoString returns the string representation
func (GetFaceDetectionOutput) SDKResponseMetadata ¶
func (s GetFaceDetectionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetFaceDetectionOutput) String ¶
func (s GetFaceDetectionOutput) String() string
String returns the string representation
type GetFaceDetectionPager ¶
GetFaceDetectionPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetFaceDetectionPager) CurrentPage ¶
func (p *GetFaceDetectionPager) CurrentPage() *GetFaceDetectionOutput
type GetFaceDetectionRequest ¶
type GetFaceDetectionRequest struct { *aws.Request Input *GetFaceDetectionInput Copy func(*GetFaceDetectionInput) GetFaceDetectionRequest }
GetFaceDetectionRequest is a API request type for the GetFaceDetection API operation.
func (*GetFaceDetectionRequest) Paginate ¶
func (p *GetFaceDetectionRequest) Paginate(opts ...aws.Option) GetFaceDetectionPager
Paginate pages iterates over the pages of a GetFaceDetectionRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetFaceDetection operation. req := client.GetFaceDetectionRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetFaceDetectionRequest) Send ¶
func (r GetFaceDetectionRequest) Send() (*GetFaceDetectionOutput, error)
Send marshals and sends the GetFaceDetection API request.
type GetFaceSearchInput ¶
type GetFaceSearchInput struct { // The job identifer for the search request. You get the job identifier from // an initial call to StartFaceSearch. // // JobId is a required field JobId *string `min:"1" type:"string" required:"true"` // Maximum number of search results you want Rekognition Video to return in // the response. The default is 1000. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there is more search results // to retrieve), Rekognition Video returns a pagination token in the response. // You can use this pagination token to retrieve the next set of search results. NextToken *string `type:"string"` // Sort to use for grouping faces in the response. Use TIMESTAMP to group faces // by the time that they are recognized. Use INDEX to sort by recognized faces. SortBy FaceSearchSortBy `type:"string" enum:"true"` // contains filtered or unexported fields }
func (GetFaceSearchInput) GoString ¶
func (s GetFaceSearchInput) GoString() string
GoString returns the string representation
func (GetFaceSearchInput) String ¶
func (s GetFaceSearchInput) String() string
String returns the string representation
func (*GetFaceSearchInput) Validate ¶
func (s *GetFaceSearchInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFaceSearchOutput ¶
type GetFaceSearchOutput struct { // The current status of the face search job. JobStatus VideoJobStatus `type:"string" enum:"true"` // If the response is truncated, Rekognition Video returns this token that you // can use in the subsequent request to retrieve the next set of search results. NextToken *string `type:"string"` // An array of persons, , in the video whose face(s) match the face(s) in an // Amazon Rekognition collection. It also includes time information for when // persons are matched in the video. You specify the input collection in an // initial call to StartFaceSearch. Each Persons element includes a time the // person was matched, face match details (FaceMatches) for matching faces in // the collection, and person information (Person) for the matched person. Persons []PersonMatch `type:"list"` // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string `type:"string"` // Information about a video that Amazon Rekognition analyzed. Videometadata // is returned in every page of paginated responses from a Rekognition Video // operation. VideoMetadata *VideoMetadata `type:"structure"` // contains filtered or unexported fields }
func (GetFaceSearchOutput) GoString ¶
func (s GetFaceSearchOutput) GoString() string
GoString returns the string representation
func (GetFaceSearchOutput) SDKResponseMetadata ¶
func (s GetFaceSearchOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetFaceSearchOutput) String ¶
func (s GetFaceSearchOutput) String() string
String returns the string representation
type GetFaceSearchPager ¶
GetFaceSearchPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetFaceSearchPager) CurrentPage ¶
func (p *GetFaceSearchPager) CurrentPage() *GetFaceSearchOutput
type GetFaceSearchRequest ¶
type GetFaceSearchRequest struct { *aws.Request Input *GetFaceSearchInput Copy func(*GetFaceSearchInput) GetFaceSearchRequest }
GetFaceSearchRequest is a API request type for the GetFaceSearch API operation.
func (*GetFaceSearchRequest) Paginate ¶
func (p *GetFaceSearchRequest) Paginate(opts ...aws.Option) GetFaceSearchPager
Paginate pages iterates over the pages of a GetFaceSearchRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetFaceSearch operation. req := client.GetFaceSearchRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetFaceSearchRequest) Send ¶
func (r GetFaceSearchRequest) Send() (*GetFaceSearchOutput, error)
Send marshals and sends the GetFaceSearch API request.
type GetLabelDetectionInput ¶
type GetLabelDetectionInput struct { // Job identifier for the label detection operation for which you want results // returned. You get the job identifer from an initial call to StartlabelDetection. // // JobId is a required field JobId *string `min:"1" type:"string" required:"true"` // Maximum number of labels you want Amazon Rekognition to return in the response. // The default is 1000. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there are more labels to // retrieve), Rekognition Video returns a pagination token in the response. // You can use this pagination token to retrieve the next set of labels. NextToken *string `type:"string"` // Sort to use for elements in the Labels array. Use TIMESTAMP to sort array // elements by the time labels are detected. Use NAME to alphabetically group // elements for a label together. Within each label group, the array element // are sorted by detection confidence. The default sort is by TIMESTAMP. SortBy LabelDetectionSortBy `type:"string" enum:"true"` // contains filtered or unexported fields }
func (GetLabelDetectionInput) GoString ¶
func (s GetLabelDetectionInput) GoString() string
GoString returns the string representation
func (GetLabelDetectionInput) String ¶
func (s GetLabelDetectionInput) String() string
String returns the string representation
func (*GetLabelDetectionInput) Validate ¶
func (s *GetLabelDetectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetLabelDetectionOutput ¶
type GetLabelDetectionOutput struct { // The current status of the label detection job. JobStatus VideoJobStatus `type:"string" enum:"true"` // An array of labels detected in the video. Each element contains the detected // label and the time, in milliseconds from the start of the video, that the // label was detected. Labels []LabelDetection `type:"list"` // If the response is truncated, Rekognition Video returns this token that you // can use in the subsequent request to retrieve the next set of labels. NextToken *string `type:"string"` // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string `type:"string"` // Information about a video that Rekognition Video analyzed. Videometadata // is returned in every page of paginated responses from a Amazon Rekognition // video operation. VideoMetadata *VideoMetadata `type:"structure"` // contains filtered or unexported fields }
func (GetLabelDetectionOutput) GoString ¶
func (s GetLabelDetectionOutput) GoString() string
GoString returns the string representation
func (GetLabelDetectionOutput) SDKResponseMetadata ¶
func (s GetLabelDetectionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetLabelDetectionOutput) String ¶
func (s GetLabelDetectionOutput) String() string
String returns the string representation
type GetLabelDetectionPager ¶
GetLabelDetectionPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetLabelDetectionPager) CurrentPage ¶
func (p *GetLabelDetectionPager) CurrentPage() *GetLabelDetectionOutput
type GetLabelDetectionRequest ¶
type GetLabelDetectionRequest struct { *aws.Request Input *GetLabelDetectionInput Copy func(*GetLabelDetectionInput) GetLabelDetectionRequest }
GetLabelDetectionRequest is a API request type for the GetLabelDetection API operation.
func (*GetLabelDetectionRequest) Paginate ¶
func (p *GetLabelDetectionRequest) Paginate(opts ...aws.Option) GetLabelDetectionPager
Paginate pages iterates over the pages of a GetLabelDetectionRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetLabelDetection operation. req := client.GetLabelDetectionRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetLabelDetectionRequest) Send ¶
func (r GetLabelDetectionRequest) Send() (*GetLabelDetectionOutput, error)
Send marshals and sends the GetLabelDetection API request.
type GetPersonTrackingInput ¶
type GetPersonTrackingInput struct { // The identifier for a job that tracks persons in a video. You get the JobId // from a call to StartPersonTracking. // // JobId is a required field JobId *string `min:"1" type:"string" required:"true"` // Maximum number of tracked persons to return. The default is 1000. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there are more persons to // retrieve), Rekognition Video returns a pagination token in the response. // You can use this pagination token to retrieve the next set of persons. NextToken *string `type:"string"` // Sort to use for elements in the Persons array. Use TIMESTAMP to sort array // elements by the time persons are detected. Use INDEX to sort by the tracked // persons. If you sort by INDEX, the array elements for each person are sorted // by detection confidence. The default sort is by TIMESTAMP. SortBy PersonTrackingSortBy `type:"string" enum:"true"` // contains filtered or unexported fields }
func (GetPersonTrackingInput) GoString ¶
func (s GetPersonTrackingInput) GoString() string
GoString returns the string representation
func (GetPersonTrackingInput) String ¶
func (s GetPersonTrackingInput) String() string
String returns the string representation
func (*GetPersonTrackingInput) Validate ¶
func (s *GetPersonTrackingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetPersonTrackingOutput ¶
type GetPersonTrackingOutput struct { // The current status of the person tracking job. JobStatus VideoJobStatus `type:"string" enum:"true"` // If the response is truncated, Rekognition Video returns this token that you // can use in the subsequent request to retrieve the next set of persons. NextToken *string `type:"string"` // An array of the persons detected in the video and the times they are tracked // throughout the video. An array element will exist for each time the person // is tracked. Persons []PersonDetection `type:"list"` // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string `type:"string"` // Information about a video that Rekognition Video analyzed. Videometadata // is returned in every page of paginated responses from a Rekognition Video // operation. VideoMetadata *VideoMetadata `type:"structure"` // contains filtered or unexported fields }
func (GetPersonTrackingOutput) GoString ¶
func (s GetPersonTrackingOutput) GoString() string
GoString returns the string representation
func (GetPersonTrackingOutput) SDKResponseMetadata ¶
func (s GetPersonTrackingOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetPersonTrackingOutput) String ¶
func (s GetPersonTrackingOutput) String() string
String returns the string representation
type GetPersonTrackingPager ¶
GetPersonTrackingPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*GetPersonTrackingPager) CurrentPage ¶
func (p *GetPersonTrackingPager) CurrentPage() *GetPersonTrackingOutput
type GetPersonTrackingRequest ¶
type GetPersonTrackingRequest struct { *aws.Request Input *GetPersonTrackingInput Copy func(*GetPersonTrackingInput) GetPersonTrackingRequest }
GetPersonTrackingRequest is a API request type for the GetPersonTracking API operation.
func (*GetPersonTrackingRequest) Paginate ¶
func (p *GetPersonTrackingRequest) Paginate(opts ...aws.Option) GetPersonTrackingPager
Paginate pages iterates over the pages of a GetPersonTrackingRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetPersonTracking operation. req := client.GetPersonTrackingRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (GetPersonTrackingRequest) Send ¶
func (r GetPersonTrackingRequest) Send() (*GetPersonTrackingOutput, error)
Send marshals and sends the GetPersonTracking API request.
type Image ¶
type Image struct { // Blob of image bytes up to 5 MBs. // // Bytes is automatically base64 encoded/decoded by the SDK. Bytes []byte `min:"1" type:"blob"` // Identifies an S3 object as the image source. S3Object *S3Object `type:"structure"` // contains filtered or unexported fields }
Provides the input image either as bytes or an S3 object.
You pass image bytes to a Rekognition API operation by using the Bytes property. For example, you would use the Bytes property to pass an image loaded from a local file system. Image bytes passed by using the Bytes property must be base64-encoded. Your code may not need to encode image bytes if you are using an AWS SDK to call Rekognition API operations. For more information, see images-bytes.
You pass images stored in an S3 bucket to a Rekognition API operation by using the S3Object property. Images stored in an S3 bucket do not need to be base64-encoded.
The region for the S3 bucket containing the S3 object must match the region you use for Amazon Rekognition operations.
If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes using the Bytes property is not supported. You must first upload the image to an Amazon S3 bucket and then call the operation using the S3Object property.
For Amazon Rekognition to process an S3 object, the user must have permission to access the S3 object. For more information, see manage-access-resource-policies.
type ImageQuality ¶
type ImageQuality struct { // Value representing brightness of the face. The service returns a value between // 0 and 100 (inclusive). A higher value indicates a brighter face image. Brightness *float64 `type:"float"` // Value representing sharpness of the face. The service returns a value between // 0 and 100 (inclusive). A higher value indicates a sharper face image. Sharpness *float64 `type:"float"` // contains filtered or unexported fields }
Identifies face image brightness and sharpness.
func (ImageQuality) GoString ¶
func (s ImageQuality) GoString() string
GoString returns the string representation
func (ImageQuality) String ¶
func (s ImageQuality) String() string
String returns the string representation
type IndexFacesInput ¶
type IndexFacesInput struct { // The ID of an existing collection to which you want to add the faces that // are detected in the input images. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // 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). DetectionAttributes []Attribute `type:"list"` // ID you want to assign to all the faces detected in the image. ExternalImageId *string `min:"1" type:"string"` // 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. // // Image is a required field Image *Image `type:"structure" required:"true"` // contains filtered or unexported fields }
func (IndexFacesInput) GoString ¶
func (s IndexFacesInput) GoString() string
GoString returns the string representation
func (IndexFacesInput) String ¶
func (s IndexFacesInput) String() string
String returns the string representation
func (*IndexFacesInput) Validate ¶
func (s *IndexFacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type IndexFacesOutput ¶
type IndexFacesOutput struct { // Version number of the face detection model associated with the input collection // (CollectionId). FaceModelVersion *string `type:"string"` // An array of faces detected and added to the collection. For more information, // see collections-index-faces. FaceRecords []FaceRecord `type:"list"` // The orientation of the input image (counterclockwise direction). If your // application displays the image, you can use this value to correct image orientation. // The bounding box coordinates returned in FaceRecords represent face locations // before the image orientation is corrected. // // If the input image is in jpeg format, it might contain exchangeable image // (Exif) metadata. If so, and the Exif metadata populates the orientation field, // the value of OrientationCorrection is null and the bounding box coordinates // in FaceRecords represent face locations after Exif metadata is used to correct // the image orientation. Images in .png format don't contain Exif metadata. OrientationCorrection OrientationCorrection `type:"string" enum:"true"` // contains filtered or unexported fields }
func (IndexFacesOutput) GoString ¶
func (s IndexFacesOutput) GoString() string
GoString returns the string representation
func (IndexFacesOutput) SDKResponseMetadata ¶
func (s IndexFacesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (IndexFacesOutput) String ¶
func (s IndexFacesOutput) String() string
String returns the string representation
type IndexFacesRequest ¶
type IndexFacesRequest struct { *aws.Request Input *IndexFacesInput Copy func(*IndexFacesInput) IndexFacesRequest }
IndexFacesRequest is a API request type for the IndexFaces API operation.
func (IndexFacesRequest) Send ¶
func (r IndexFacesRequest) Send() (*IndexFacesOutput, error)
Send marshals and sends the IndexFaces API request.
type KinesisDataStream ¶
type KinesisDataStream struct { // ARN of the output Amazon Kinesis Data Streams stream. Arn *string `type:"string"` // contains filtered or unexported fields }
The Kinesis data stream Amazon Rekognition to which the analysis results of a Amazon Rekognition stream processor are streamed. For more information, see .
func (KinesisDataStream) GoString ¶
func (s KinesisDataStream) GoString() string
GoString returns the string representation
func (KinesisDataStream) String ¶
func (s KinesisDataStream) String() string
String returns the string representation
type KinesisVideoStream ¶
type KinesisVideoStream struct { // ARN of the Kinesis video stream stream that streams the source video. Arn *string `type:"string"` // contains filtered or unexported fields }
Kinesis video stream stream that provides the source streaming video for a Rekognition Video stream processor. For more information, see .
func (KinesisVideoStream) GoString ¶
func (s KinesisVideoStream) GoString() string
GoString returns the string representation
func (KinesisVideoStream) String ¶
func (s KinesisVideoStream) String() string
String returns the string representation
type Label ¶
type Label struct { // Level of confidence. Confidence *float64 `type:"float"` // The name (label) of the object. Name *string `type:"string"` // contains filtered or unexported fields }
Structure containing details about the detected label, including name, and level of confidence.
type LabelDetection ¶
type LabelDetection struct { // Details about the detected label. Label *Label `type:"structure"` // Time, in milliseconds from the start of the video, that the label was detected. Timestamp *int64 `type:"long"` // contains filtered or unexported fields }
Information about a label detected in a video analysis request and the time the label was detected in the video.
func (LabelDetection) GoString ¶
func (s LabelDetection) GoString() string
GoString returns the string representation
func (LabelDetection) String ¶
func (s LabelDetection) String() string
String returns the string representation
type LabelDetectionSortBy ¶
type LabelDetectionSortBy string
const ( LabelDetectionSortByName LabelDetectionSortBy = "NAME" LabelDetectionSortByTimestamp LabelDetectionSortBy = "TIMESTAMP" )
Enum values for LabelDetectionSortBy
func (LabelDetectionSortBy) MarshalValue ¶
func (enum LabelDetectionSortBy) MarshalValue() (string, error)
func (LabelDetectionSortBy) MarshalValueBuf ¶
func (enum LabelDetectionSortBy) MarshalValueBuf(b []byte) ([]byte, error)
type Landmark ¶
type Landmark struct { // Type of the landmark. Type LandmarkType `type:"string" enum:"true"` // x-coordinate from the top left of the landmark expressed as the ratio of // the width of the image. For example, if the images is 700x200 and the x-coordinate // of the landmark is at 350 pixels, this value is 0.5. X *float64 `type:"float"` // y-coordinate from the top left of the landmark expressed as the ratio of // the height of the image. For example, if the images is 700x200 and the y-coordinate // of the landmark is at 100 pixels, this value is 0.5. Y *float64 `type:"float"` // contains filtered or unexported fields }
Indicates the location of the landmark on the face.
type LandmarkType ¶
type LandmarkType string
const ( LandmarkTypeEyeLeft LandmarkType = "eyeLeft" LandmarkTypeEyeRight LandmarkType = "eyeRight" LandmarkTypeNose LandmarkType = "nose" LandmarkTypeMouthLeft LandmarkType = "mouthLeft" LandmarkTypeMouthRight LandmarkType = "mouthRight" LandmarkTypeLeftEyeBrowLeft LandmarkType = "leftEyeBrowLeft" LandmarkTypeLeftEyeBrowRight LandmarkType = "leftEyeBrowRight" LandmarkTypeLeftEyeBrowUp LandmarkType = "leftEyeBrowUp" LandmarkTypeRightEyeBrowLeft LandmarkType = "rightEyeBrowLeft" LandmarkTypeRightEyeBrowRight LandmarkType = "rightEyeBrowRight" LandmarkTypeRightEyeBrowUp LandmarkType = "rightEyeBrowUp" LandmarkTypeLeftEyeLeft LandmarkType = "leftEyeLeft" LandmarkTypeLeftEyeRight LandmarkType = "leftEyeRight" LandmarkTypeLeftEyeUp LandmarkType = "leftEyeUp" LandmarkTypeLeftEyeDown LandmarkType = "leftEyeDown" LandmarkTypeRightEyeLeft LandmarkType = "rightEyeLeft" LandmarkTypeRightEyeRight LandmarkType = "rightEyeRight" LandmarkTypeRightEyeUp LandmarkType = "rightEyeUp" LandmarkTypeRightEyeDown LandmarkType = "rightEyeDown" LandmarkTypeNoseLeft LandmarkType = "noseLeft" LandmarkTypeNoseRight LandmarkType = "noseRight" LandmarkTypeMouthUp LandmarkType = "mouthUp" LandmarkTypeMouthDown LandmarkType = "mouthDown" LandmarkTypeLeftPupil LandmarkType = "leftPupil" LandmarkTypeRightPupil LandmarkType = "rightPupil" )
Enum values for LandmarkType
func (LandmarkType) MarshalValue ¶
func (enum LandmarkType) MarshalValue() (string, error)
func (LandmarkType) MarshalValueBuf ¶
func (enum LandmarkType) MarshalValueBuf(b []byte) ([]byte, error)
type ListCollectionsInput ¶
type ListCollectionsInput struct { // Maximum number of collection IDs to return. MaxResults *int64 `type:"integer"` // Pagination token from the previous response. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (ListCollectionsInput) GoString ¶
func (s ListCollectionsInput) GoString() string
GoString returns the string representation
func (ListCollectionsInput) String ¶
func (s ListCollectionsInput) String() string
String returns the string representation
type ListCollectionsOutput ¶
type ListCollectionsOutput struct { // An array of collection IDs. CollectionIds []string `type:"list"` // Version numbers of the face detection models associated with the collections // in the array CollectionIds. For example, the value of FaceModelVersions[2] // is the version number for the face detection model used by the collection // in CollectionId[2]. FaceModelVersions []string `type:"list"` // If the result is truncated, the response provides a NextToken that you can // use in the subsequent request to fetch the next set of collection IDs. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (ListCollectionsOutput) GoString ¶
func (s ListCollectionsOutput) GoString() string
GoString returns the string representation
func (ListCollectionsOutput) SDKResponseMetadata ¶
func (s ListCollectionsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListCollectionsOutput) String ¶
func (s ListCollectionsOutput) String() string
String returns the string representation
type ListCollectionsPager ¶
ListCollectionsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListCollectionsPager) CurrentPage ¶
func (p *ListCollectionsPager) CurrentPage() *ListCollectionsOutput
type ListCollectionsRequest ¶
type ListCollectionsRequest struct { *aws.Request Input *ListCollectionsInput Copy func(*ListCollectionsInput) ListCollectionsRequest }
ListCollectionsRequest is a API request type for the ListCollections API operation.
func (*ListCollectionsRequest) Paginate ¶
func (p *ListCollectionsRequest) Paginate(opts ...aws.Option) ListCollectionsPager
Paginate pages iterates over the pages of a ListCollectionsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListCollections operation. req := client.ListCollectionsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListCollectionsRequest) Send ¶
func (r ListCollectionsRequest) Send() (*ListCollectionsOutput, error)
Send marshals and sends the ListCollections API request.
type ListFacesInput ¶
type ListFacesInput struct { // ID of the collection from which to list the faces. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // Maximum number of faces to return. MaxResults *int64 `type:"integer"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Rekognition returns a pagination token in the response. You can use // this pagination token to retrieve the next set of faces. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (ListFacesInput) GoString ¶
func (s ListFacesInput) GoString() string
GoString returns the string representation
func (ListFacesInput) String ¶
func (s ListFacesInput) String() string
String returns the string representation
func (*ListFacesInput) Validate ¶
func (s *ListFacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListFacesOutput ¶
type ListFacesOutput struct { // Version number of the face detection model associated with the input collection // (CollectionId). FaceModelVersion *string `type:"string"` // An array of Face objects. Faces []Face `type:"list"` // If the response is truncated, Amazon Rekognition returns this token that // you can use in the subsequent request to retrieve the next set of faces. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (ListFacesOutput) GoString ¶
func (s ListFacesOutput) GoString() string
GoString returns the string representation
func (ListFacesOutput) SDKResponseMetadata ¶
func (s ListFacesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListFacesOutput) String ¶
func (s ListFacesOutput) String() string
String returns the string representation
type ListFacesPager ¶
ListFacesPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListFacesPager) CurrentPage ¶
func (p *ListFacesPager) CurrentPage() *ListFacesOutput
type ListFacesRequest ¶
type ListFacesRequest struct { *aws.Request Input *ListFacesInput Copy func(*ListFacesInput) ListFacesRequest }
ListFacesRequest is a API request type for the ListFaces API operation.
func (*ListFacesRequest) Paginate ¶
func (p *ListFacesRequest) Paginate(opts ...aws.Option) ListFacesPager
Paginate pages iterates over the pages of a ListFacesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListFaces operation. req := client.ListFacesRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListFacesRequest) Send ¶
func (r ListFacesRequest) Send() (*ListFacesOutput, error)
Send marshals and sends the ListFaces API request.
type ListStreamProcessorsInput ¶
type ListStreamProcessorsInput struct { // Maximum number of stream processors you want Rekognition Video to return // in the response. The default is 1000. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there are more stream processors // to retrieve), Rekognition Video returns a pagination token in the response. // You can use this pagination token to retrieve the next set of stream processors. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (ListStreamProcessorsInput) GoString ¶
func (s ListStreamProcessorsInput) GoString() string
GoString returns the string representation
func (ListStreamProcessorsInput) String ¶
func (s ListStreamProcessorsInput) String() string
String returns the string representation
func (*ListStreamProcessorsInput) Validate ¶
func (s *ListStreamProcessorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListStreamProcessorsOutput ¶
type ListStreamProcessorsOutput struct { // If the response is truncated, Rekognition Video returns this token that you // can use in the subsequent request to retrieve the next set of stream processors. NextToken *string `type:"string"` // List of stream processors that you have created. StreamProcessors []StreamProcessor `type:"list"` // contains filtered or unexported fields }
func (ListStreamProcessorsOutput) GoString ¶
func (s ListStreamProcessorsOutput) GoString() string
GoString returns the string representation
func (ListStreamProcessorsOutput) SDKResponseMetadata ¶
func (s ListStreamProcessorsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListStreamProcessorsOutput) String ¶
func (s ListStreamProcessorsOutput) String() string
String returns the string representation
type ListStreamProcessorsPager ¶
ListStreamProcessorsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListStreamProcessorsPager) CurrentPage ¶
func (p *ListStreamProcessorsPager) CurrentPage() *ListStreamProcessorsOutput
type ListStreamProcessorsRequest ¶
type ListStreamProcessorsRequest struct { *aws.Request Input *ListStreamProcessorsInput Copy func(*ListStreamProcessorsInput) ListStreamProcessorsRequest }
ListStreamProcessorsRequest is a API request type for the ListStreamProcessors API operation.
func (*ListStreamProcessorsRequest) Paginate ¶
func (p *ListStreamProcessorsRequest) Paginate(opts ...aws.Option) ListStreamProcessorsPager
Paginate pages iterates over the pages of a ListStreamProcessorsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListStreamProcessors operation. req := client.ListStreamProcessorsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListStreamProcessorsRequest) Send ¶
func (r ListStreamProcessorsRequest) Send() (*ListStreamProcessorsOutput, error)
Send marshals and sends the ListStreamProcessors API request.
type ModerationLabel ¶
type ModerationLabel struct { // 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. Confidence *float64 `type:"float"` // The label name for the type of content detected in the image. Name *string `type:"string"` // The name for the parent label. Labels at the top-level of the hierarchy have // the parent label "". ParentName *string `type:"string"` // contains filtered or unexported fields }
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.
func (ModerationLabel) GoString ¶
func (s ModerationLabel) GoString() string
GoString returns the string representation
func (ModerationLabel) String ¶
func (s ModerationLabel) String() string
String returns the string representation
type MouthOpen ¶
type MouthOpen struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Boolean value that indicates whether the mouth on the face is open or not. Value *bool `type:"boolean"` // contains filtered or unexported fields }
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
type Mustache ¶
type Mustache struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Boolean value that indicates whether the face has mustache or not. Value *bool `type:"boolean"` // contains filtered or unexported fields }
Indicates whether or not the face has a mustache, and the confidence level in the determination.
type NotificationChannel ¶
type NotificationChannel struct { // The ARN of an IAM role that gives Amazon Rekognition publishing permissions // to the Amazon SNS topic. // // RoleArn is a required field RoleArn *string `type:"string" required:"true"` // The Amazon SNS topic to which Amazon Rekognition to posts the completion // status. // // SNSTopicArn is a required field SNSTopicArn *string `type:"string" required:"true"` // contains filtered or unexported fields }
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see api-video.
func (NotificationChannel) GoString ¶
func (s NotificationChannel) GoString() string
GoString returns the string representation
func (NotificationChannel) String ¶
func (s NotificationChannel) String() string
String returns the string representation
func (*NotificationChannel) Validate ¶
func (s *NotificationChannel) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type OrientationCorrection ¶
type OrientationCorrection string
const ( OrientationCorrectionRotate0 OrientationCorrection = "ROTATE_0" OrientationCorrectionRotate90 OrientationCorrection = "ROTATE_90" OrientationCorrectionRotate180 OrientationCorrection = "ROTATE_180" OrientationCorrectionRotate270 OrientationCorrection = "ROTATE_270" )
Enum values for OrientationCorrection
func (OrientationCorrection) MarshalValue ¶
func (enum OrientationCorrection) MarshalValue() (string, error)
func (OrientationCorrection) MarshalValueBuf ¶
func (enum OrientationCorrection) MarshalValueBuf(b []byte) ([]byte, error)
type PersonDetail ¶
type PersonDetail struct { // Bounding box around the detected person. BoundingBox *BoundingBox `type:"structure"` // Face details for the detected person. Face *FaceDetail `type:"structure"` // Identifier for the person detected person within a video. Use to keep track // of the person throughout the video. The identifier is not stored by Amazon // Rekognition. Index *int64 `type:"long"` // contains filtered or unexported fields }
Details about a person detected in a video analysis request.
func (PersonDetail) GoString ¶
func (s PersonDetail) GoString() string
GoString returns the string representation
func (PersonDetail) String ¶
func (s PersonDetail) String() string
String returns the string representation
type PersonDetection ¶
type PersonDetection struct { // Details about a person tracked in a video. Person *PersonDetail `type:"structure"` // The time, in milliseconds from the start of the video, that the person was // tracked. Timestamp *int64 `type:"long"` // contains filtered or unexported fields }
Details and tracking information for a single time a person is tracked in a video. Amazon Rekognition operations that track persons return an array of PersonDetection objects with elements for each time a person is tracked in a video. For more information, see .
func (PersonDetection) GoString ¶
func (s PersonDetection) GoString() string
GoString returns the string representation
func (PersonDetection) String ¶
func (s PersonDetection) String() string
String returns the string representation
type PersonMatch ¶
type PersonMatch struct { // Information about the faces in the input collection that match the face of // a person in the video. FaceMatches []FaceMatch `type:"list"` // Information about the matched person. Person *PersonDetail `type:"structure"` // The time, in milliseconds from the beginning of the video, that the person // was matched in the video. Timestamp *int64 `type:"long"` // contains filtered or unexported fields }
Information about a person whose face matches a face(s) in a Amazon Rekognition collection. Includes information about the faces in the Amazon Rekognition collection (,information about the person (PersonDetail) and the timestamp for when the person was detected in a video. An array of PersonMatch objects is returned by .
func (PersonMatch) GoString ¶
func (s PersonMatch) GoString() string
GoString returns the string representation
func (PersonMatch) String ¶
func (s PersonMatch) String() string
String returns the string representation
type PersonTrackingSortBy ¶
type PersonTrackingSortBy string
const ( PersonTrackingSortByIndex PersonTrackingSortBy = "INDEX" PersonTrackingSortByTimestamp PersonTrackingSortBy = "TIMESTAMP" )
Enum values for PersonTrackingSortBy
func (PersonTrackingSortBy) MarshalValue ¶
func (enum PersonTrackingSortBy) MarshalValue() (string, error)
func (PersonTrackingSortBy) MarshalValueBuf ¶
func (enum PersonTrackingSortBy) MarshalValueBuf(b []byte) ([]byte, error)
type Point ¶
type Point struct { // The value of the X coordinate for a point on a Polygon. X *float64 `type:"float"` // The value of the Y coordinate for a point on a Polygon. Y *float64 `type:"float"` // contains filtered or unexported fields }
The X and Y coordinates of a point on an image. The X and Y values returned are ratios of the overall image size. For example, if the input image is 700x200 and the operation returns X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the image.
An array of Point objects, Polygon, is returned by . Polygon represents a fine-grained polygon around detected text. For more information, see .
type Pose ¶
type Pose struct { // Value representing the face rotation on the pitch axis. Pitch *float64 `type:"float"` // Value representing the face rotation on the roll axis. Roll *float64 `type:"float"` // Value representing the face rotation on the yaw axis. Yaw *float64 `type:"float"` // contains filtered or unexported fields }
Indicates the pose of the face as determined by its pitch, roll, and yaw.
type RecognizeCelebritiesInput ¶
type RecognizeCelebritiesInput struct { // 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. // // Image is a required field Image *Image `type:"structure" required:"true"` // contains filtered or unexported fields }
func (RecognizeCelebritiesInput) GoString ¶
func (s RecognizeCelebritiesInput) GoString() string
GoString returns the string representation
func (RecognizeCelebritiesInput) String ¶
func (s RecognizeCelebritiesInput) String() string
String returns the string representation
func (*RecognizeCelebritiesInput) Validate ¶
func (s *RecognizeCelebritiesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RecognizeCelebritiesOutput ¶
type RecognizeCelebritiesOutput struct { // Details about each celebrity found in the image. Amazon Rekognition can detect // a maximum of 15 celebrities in an image. CelebrityFaces []Celebrity `type:"list"` // The orientation of the input image (counterclockwise direction). If your // application displays the image, you can use this value to correct the orientation. // The bounding box coordinates returned in CelebrityFaces and UnrecognizedFaces // represent face locations before the image orientation is corrected. // // If the input image is in .jpeg format, it might contain exchangeable image // (Exif) metadata that includes the image's orientation. If so, and the Exif // metadata for the input image populates the orientation field, the value of // OrientationCorrection is null and the CelebrityFaces and UnrecognizedFaces // bounding box coordinates represent face locations after Exif metadata is // used to correct the image orientation. Images in .png format don't contain // Exif metadata. OrientationCorrection OrientationCorrection `type:"string" enum:"true"` // Details about each unrecognized face in the image. UnrecognizedFaces []ComparedFace `type:"list"` // contains filtered or unexported fields }
func (RecognizeCelebritiesOutput) GoString ¶
func (s RecognizeCelebritiesOutput) GoString() string
GoString returns the string representation
func (RecognizeCelebritiesOutput) SDKResponseMetadata ¶
func (s RecognizeCelebritiesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RecognizeCelebritiesOutput) String ¶
func (s RecognizeCelebritiesOutput) String() string
String returns the string representation
type RecognizeCelebritiesRequest ¶
type RecognizeCelebritiesRequest struct { *aws.Request Input *RecognizeCelebritiesInput Copy func(*RecognizeCelebritiesInput) RecognizeCelebritiesRequest }
RecognizeCelebritiesRequest is a API request type for the RecognizeCelebrities API operation.
func (RecognizeCelebritiesRequest) Send ¶
func (r RecognizeCelebritiesRequest) Send() (*RecognizeCelebritiesOutput, error)
Send marshals and sends the RecognizeCelebrities API request.
type Rekognition ¶
Rekognition provides the API operation methods for making requests to Amazon Rekognition. See this package's package overview docs for details on the service.
Rekognition methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(config aws.Config) *Rekognition
New creates a new instance of the Rekognition client with a config.
Example:
// Create a Rekognition client from just a config. svc := rekognition.New(myConfig)
func (*Rekognition) CompareFacesRequest ¶
func (c *Rekognition) CompareFacesRequest(input *CompareFacesInput) CompareFacesRequest
CompareFacesRequest returns a request value for making API operation for Amazon Rekognition.
Compares a face in the source input image with each of the 100 largest faces detected in the target input image.
If the source image contains multiple faces, the service detects the largest face and compares it with each face detected in the target image.
You pass the input and target images either as base64-encoded image bytes or as a references to images in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
In response, the operation returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face, facial landmarks, pose details (pitch, role, and yaw), quality (brightness and sharpness), and confidence value (indicating the level of confidence that the bounding box contains a face). The response also provides a similarity score, which indicates how closely the faces match.
By default, only faces with a similarity score of greater than or equal to 80% are returned in the response. You can change this value by specifying the SimilarityThreshold parameter.
CompareFaces also returns an array of faces that don't match the source image. For each face, it returns a bounding box, confidence value, landmarks, pose details, and quality. The response also returns information about the face in the source image, including the bounding box of the face and confidence value.
If the image doesn't contain Exif metadata, CompareFaces returns orientation information for the source and target images. Use these values to display the images with the correct image orientation.
If no faces are detected in the source or target images, CompareFaces returns an InvalidParameterException error.
This is a stateless API operation. That is, data returned by this operation doesn't persist.
For an example, see faces-compare-images.
This operation requires permissions to perform the rekognition:CompareFaces action.
// Example sending a request using the CompareFacesRequest method. req := client.CompareFacesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) CreateCollectionRequest ¶
func (c *Rekognition) CreateCollectionRequest(input *CreateCollectionInput) CreateCollectionRequest
CreateCollectionRequest returns a request value for making API operation for Amazon Rekognition.
Creates a collection in an AWS Region. You can add faces to the collection using the operation.
For example, you might create collections, one for each of your application users. A user can then index faces using the IndexFaces operation and persist results in a specific collection. Then, a user can search the collection for faces in the user-specific container.
Collection names are case-sensitive.
This operation requires permissions to perform the rekognition:CreateCollection action.
// Example sending a request using the CreateCollectionRequest method. req := client.CreateCollectionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) CreateStreamProcessorRequest ¶
func (c *Rekognition) CreateStreamProcessorRequest(input *CreateStreamProcessorInput) CreateStreamProcessorRequest
CreateStreamProcessorRequest returns a request value for making API operation for Amazon Rekognition.
Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces in a streaming video.
Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. Rekognition Video sends analysis results to Amazon Kinesis Data Streams.
You provide as input a Kinesis video stream (Input) and a Kinesis data stream (Output) stream. You also specify the face recognition criteria in Settings. For example, the collection containing faces that you want to recognize. Use Name to assign an identifier for the stream processor. You use Name to manage the stream processor. For example, you can start processing the source video by calling with the Name field.
After you have finished analyzing a streaming video, use to stop processing. You can delete the stream processor by calling .
// Example sending a request using the CreateStreamProcessorRequest method. req := client.CreateStreamProcessorRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DeleteCollectionRequest ¶
func (c *Rekognition) DeleteCollectionRequest(input *DeleteCollectionInput) DeleteCollectionRequest
DeleteCollectionRequest returns a request value for making API operation for Amazon Rekognition.
Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see delete-collection-procedure.
This operation requires permissions to perform the rekognition:DeleteCollection action.
// Example sending a request using the DeleteCollectionRequest method. req := client.DeleteCollectionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DeleteFacesRequest ¶
func (c *Rekognition) DeleteFacesRequest(input *DeleteFacesInput) DeleteFacesRequest
DeleteFacesRequest returns a request value for making API operation for Amazon Rekognition.
Deletes faces from a collection. You specify a collection ID and an array of face IDs to remove from the collection.
This operation requires permissions to perform the rekognition:DeleteFaces action.
// Example sending a request using the DeleteFacesRequest method. req := client.DeleteFacesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DeleteStreamProcessorRequest ¶
func (c *Rekognition) DeleteStreamProcessorRequest(input *DeleteStreamProcessorInput) DeleteStreamProcessorRequest
DeleteStreamProcessorRequest returns a request value for making API operation for Amazon Rekognition.
Deletes the stream processor identified by Name. You assign the value for Name when you create the stream processor with . You might not be able to use the same name for a stream processor for a few seconds after calling DeleteStreamProcessor.
// Example sending a request using the DeleteStreamProcessorRequest method. req := client.DeleteStreamProcessorRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DescribeStreamProcessorRequest ¶
func (c *Rekognition) DescribeStreamProcessorRequest(input *DescribeStreamProcessorInput) DescribeStreamProcessorRequest
DescribeStreamProcessorRequest returns a request value for making API operation for Amazon Rekognition.
Provides information about a stream processor created by . You can get information about the input and output streams, the input parameters for the face recognition being performed, and the current status of the stream processor.
// Example sending a request using the DescribeStreamProcessorRequest method. req := client.DescribeStreamProcessorRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DetectFacesRequest ¶
func (c *Rekognition) DetectFacesRequest(input *DetectFacesInput) DetectFacesRequest
DetectFacesRequest returns a request value for making API operation for Amazon Rekognition.
Detects faces within an image that is provided as input.
DetectFaces detects the 100 largest faces in the image. For each face detected, the operation returns face details including a bounding box of the face, a confidence value (that the bounding box contains a face), and a fixed set of attributes such as facial landmarks (for example, coordinates of eye and mouth), gender, presence of beard, sunglasses, etc.
The face-detection algorithm is most effective on frontal faces. For non-frontal or obscured faces, the algorithm may not detect the faces or might detect faces with lower confidence.
You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
This is a stateless API operation. That is, the operation does not persist any data.
For an example, see procedure-detecting-faces-in-images.
This operation requires permissions to perform the rekognition:DetectFaces action.
// Example sending a request using the DetectFacesRequest method. req := client.DetectFacesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DetectLabelsRequest ¶
func (c *Rekognition) DetectLabelsRequest(input *DetectLabelsInput) DetectLabelsRequest
DetectLabelsRequest returns a request value for making API operation for Amazon Rekognition.
Detects instances of real-world entities within an image (JPEG or PNG) provided as input. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; and concepts like landscape, evening, and nature. For an example, see images-s3.
DetectLabels does not support the detection of activities. However, activity detection is supported for label detection in videos. For more information, see .
You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
For each object, scene, and concept the API returns one or more labels. Each label provides the object name, and the level of confidence that the image contains the object. For example, suppose the input image has a lighthouse, the sea, and a rock. The response will include all three labels, one for each object.
{Name: lighthouse, Confidence: 98.4629}
{Name: rock,Confidence: 79.2097}
{Name: sea,Confidence: 75.061}
In the preceding example, the operation returns one label for each of the three objects. The operation can also return multiple labels for the same object in the image. For example, if the input image shows a flower (for example, a tulip), the operation might return the following three labels.
{Name: flower,Confidence: 99.0562}
{Name: plant,Confidence: 99.0562}
{Name: tulip,Confidence: 99.0562}
In this example, the detection algorithm more precisely identifies the flower as a tulip.
In response, the API returns an array of labels. In addition, the response also includes the orientation correction. Optionally, you can specify MinConfidence to control the confidence threshold for the labels returned. The default is 50%. You can also add the MaxLabels parameter to limit the number of labels returned.
If the object detected is a person, the operation doesn't provide the same facial details that the DetectFaces operation provides.
This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the rekognition:DetectLabels action.
// Example sending a request using the DetectLabelsRequest method. req := client.DetectLabelsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DetectModerationLabelsRequest ¶
func (c *Rekognition) DetectModerationLabelsRequest(input *DetectModerationLabelsInput) DetectModerationLabelsRequest
DetectModerationLabelsRequest returns a request value for making API operation for Amazon Rekognition.
Detects explicit or suggestive adult content in a specified JPEG or PNG format image. Use DetectModerationLabels to moderate images depending on your requirements. For example, you might want to filter images that contain nudity, but not images containing suggestive content.
To filter images, use the labels returned by DetectModerationLabels to determine which types of content are appropriate. For information about moderation labels, see moderation.
You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
// Example sending a request using the DetectModerationLabelsRequest method. req := client.DetectModerationLabelsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) DetectTextRequest ¶
func (c *Rekognition) DetectTextRequest(input *DetectTextInput) DetectTextRequest
DetectTextRequest returns a request value for making API operation for Amazon Rekognition.
Detects text in the input image and converts it into machine-readable text.
Pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, you must pass it as a reference to an image in an Amazon S3 bucket. For the AWS CLI, passing image bytes is not supported. The image must be either a .png or .jpeg formatted file.
The DetectText operation returns text in an array of elements, TextDetections. Each TextDetection element provides information about a single word or line of text that was detected in the image.
A word is one or more ISO basic latin script characters that are not separated by spaces. DetectText can detect up to 50 words in an image.
A line is a string of equally spaced words. A line isn't necessarily a complete sentence. For example, a driver's license number is detected as a line. A line ends when there is no aligned text after it. Also, a line ends when there is a large gap between words, relative to the length of the words. This means, depending on the gap between words, Amazon Rekognition may detect multiple lines in text aligned in the same direction. Periods don't represent the end of a line. If a sentence spans multiple lines, the DetectText operation returns multiple lines.
To determine whether a TextDetection element is a line of text or a word, use the TextDetection object Type field.
To be detected, text must be within +/- 30 degrees orientation of the horizontal axis.
For more information, see text-detection.
// Example sending a request using the DetectTextRequest method. req := client.DetectTextRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) GetCelebrityInfoRequest ¶
func (c *Rekognition) GetCelebrityInfoRequest(input *GetCelebrityInfoInput) GetCelebrityInfoRequest
GetCelebrityInfoRequest returns a request value for making API operation for Amazon Rekognition.
Gets the name and additional information about a celebrity based on his or her Rekognition ID. The additional information is returned as an array of URLs. If there is no additional information about the celebrity, this list is empty. For more information, see get-celebrity-info-procedure.
This operation requires permissions to perform the rekognition:GetCelebrityInfo action.
// Example sending a request using the GetCelebrityInfoRequest method. req := client.GetCelebrityInfoRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) GetCelebrityRecognitionRequest ¶
func (c *Rekognition) GetCelebrityRecognitionRequest(input *GetCelebrityRecognitionInput) GetCelebrityRecognitionRequest
GetCelebrityRecognitionRequest returns a request value for making API operation for Amazon Rekognition.
Gets the celebrity recognition results for a Rekognition Video analysis started by .
Celebrity recognition in a video is an asynchronous operation. Analysis is started by a call to which returns a job identifier (JobId). When the celebrity recognition operation finishes, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartCelebrityRecognition. To get the results of the celebrity recognition analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetCelebrityDetection and pass the job identifier (JobId) from the initial call to StartCelebrityDetection. For more information, see video.
GetCelebrityRecognition returns detected celebrities and the time(s) they are detected in an array (Celebrities) of objects. Each CelebrityRecognition contains information about the celebrity in a object and the time, Timestamp, the celebrity was detected.
By default, the Celebrities array is sorted by time (milliseconds from the start of the video). You can also sort the array by celebrity by specifying the value ID in the SortBy input parameter.
The CelebrityDetail object includes the celebrity identifer and additional information urls. If you don't store the additional information urls, you can get them later by calling with the celebrity identifer.
No information is returned for faces not recognized as celebrities.
Use MaxResults parameter to limit the number of labels returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetCelebrityDetection and populate the NextToken request parameter with the token value returned from the previous call to GetCelebrityRecognition.
// Example sending a request using the GetCelebrityRecognitionRequest method. req := client.GetCelebrityRecognitionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) GetContentModerationRequest ¶
func (c *Rekognition) GetContentModerationRequest(input *GetContentModerationInput) GetContentModerationRequest
GetContentModerationRequest returns a request value for making API operation for Amazon Rekognition.
Gets the content moderation analysis results for a Rekognition Video analysis started by .
Content moderation analysis of a video is an asynchronous operation. You start analysis by calling . which returns a job identifier (JobId). When analysis finishes, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartContentModeration. To get the results of the content moderation analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetCelebrityDetection and pass the job identifier (JobId) from the initial call to StartCelebrityDetection. For more information, see video.
GetContentModeration returns detected content moderation labels, and the time they are detected, in an array, ModerationLabels, of objects.
By default, the moderated labels are returned sorted by time, in milliseconds from the start of the video. You can also sort them by moderated label by specifying NAME for the SortBy input parameter.
Since video analysis can return a large number of results, use the MaxResults parameter to limit the number of labels returned in a single call to GetContentModeration. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetContentModeration and populate the NextToken request parameter with the value of NextToken returned from the previous call to GetContentModeration.
For more information, see moderation.
// Example sending a request using the GetContentModerationRequest method. req := client.GetContentModerationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) GetFaceDetectionRequest ¶
func (c *Rekognition) GetFaceDetectionRequest(input *GetFaceDetectionInput) GetFaceDetectionRequest
GetFaceDetectionRequest returns a request value for making API operation for Amazon Rekognition.
Gets face detection results for a Rekognition Video analysis started by .
Face detection with Rekognition Video is an asynchronous operation. You start face detection by calling which returns a job identifier (JobId). When the face detection operation finishes, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartFaceDetection. To get the results of the face detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartFaceDetection.
GetFaceDetection returns an array of detected faces (Faces) sorted by the time the faces were detected.
Use MaxResults parameter to limit the number of labels returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetFaceDetection and populate the NextToken request parameter with the token value returned from the previous call to GetFaceDetection.
// Example sending a request using the GetFaceDetectionRequest method. req := client.GetFaceDetectionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) GetFaceSearchRequest ¶
func (c *Rekognition) GetFaceSearchRequest(input *GetFaceSearchInput) GetFaceSearchRequest
GetFaceSearchRequest returns a request value for making API operation for Amazon Rekognition.
Gets the face search results for Rekognition Video face search started by . The search returns faces in a collection that match the faces of persons detected in a video. It also includes the time(s) that faces are matched in the video.
Face search in a video is an asynchronous operation. You start face search by calling to which returns a job identifier (JobId). When the search operation finishes, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartFaceSearch. To get the search results, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetFaceSearch and pass the job identifier (JobId) from the initial call to StartFaceSearch. For more information, see collections.
The search results are retured in an array, Persons, of objects. EachPersonMatch element contains details about the matching faces in the input collection, person information for the matched person, and the time the person was matched in the video.
By default, the Persons array is sorted by the time, in milliseconds from the start of the video, persons are matched. You can also sort by persons by specifying INDEX for the SORTBY input parameter.
// Example sending a request using the GetFaceSearchRequest method. req := client.GetFaceSearchRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) GetLabelDetectionRequest ¶
func (c *Rekognition) GetLabelDetectionRequest(input *GetLabelDetectionInput) GetLabelDetectionRequest
GetLabelDetectionRequest returns a request value for making API operation for Amazon Rekognition.
Gets the label detection results of a Rekognition Video analysis started by .
The label detection operation is started by a call to which returns a job identifier (JobId). When the label detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartlabelDetection. To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartLabelDetection.
GetLabelDetection returns an array of detected labels (Labels) sorted by the time the labels were detected. You can also sort by the label name by specifying NAME for the SortBy input parameter.
The labels returned include the label name, the percentage confidence in the accuracy of the detected label, and the time the label was detected in the video.
Use MaxResults parameter to limit the number of labels returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetlabelDetection and populate the NextToken request parameter with the token value returned from the previous call to GetLabelDetection.
// Example sending a request using the GetLabelDetectionRequest method. req := client.GetLabelDetectionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) GetPersonTrackingRequest ¶
func (c *Rekognition) GetPersonTrackingRequest(input *GetPersonTrackingInput) GetPersonTrackingRequest
GetPersonTrackingRequest returns a request value for making API operation for Amazon Rekognition.
Gets the person tracking results of a Rekognition Video analysis started by .
The person detection operation is started by a call to StartPersonTracking which returns a job identifier (JobId). When the person detection operation finishes, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartPersonTracking.
To get the results of the person tracking operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartPersonTracking.
GetPersonTracking returns an array, Persons, of tracked persons and the time(s) they were tracked in the video.
By default, the array is sorted by the time(s) a person is tracked in the video. You can sort by tracked persons by specifying INDEX for the SortBy input parameter.
Use the MaxResults parameter to limit the number of items returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetPersonTracking and populate the NextToken request parameter with the token value returned from the previous call to GetPersonTracking.
// Example sending a request using the GetPersonTrackingRequest method. req := client.GetPersonTrackingRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) IndexFacesRequest ¶
func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) IndexFacesRequest
IndexFacesRequest returns a request value for making API operation for Amazon Rekognition.
Detects faces in the input image and adds them to the specified collection.
Amazon Rekognition does not save the actual faces detected. Instead, the underlying detection algorithm first detects the faces in the input image, and for each face extracts facial features into a feature vector, and stores it in the back-end database. Amazon Rekognition uses feature vectors when performing face match and search operations using the and operations.
If you are using version 1.0 of the face detection model, IndexFaces indexes the 15 largest faces in the input image. Later versions of the face detection model index the 100 largest faces in the input image. To determine which version of the model you are using, check the the value of FaceModelVersion in the response from IndexFaces. For more information, see face-detection-model.
If you provide the optional ExternalImageID for the input image you provided, Amazon Rekognition associates this ID with all faces that it detects. When you call the operation, the response returns the external ID. You can use this external image ID to create a client-side index to associate the faces with each image. You can then use the index to find all faces in an image.
In response, the operation returns an array of metadata for all detected faces. This includes, the bounding box of the detected face, confidence value (indicating the bounding box contains a face), a face ID assigned by the service for each face that is detected and stored, and an image ID assigned by the service for the input image. If you request all facial attributes (using the detectionAttributes parameter, Amazon Rekognition returns detailed facial attributes such as facial landmarks (for example, location of eye and mount) and other facial attributes such gender. If you provide the same image, specify the same collection, and use the same external ID in the IndexFaces operation, Amazon Rekognition doesn't save duplicate face metadata.
The input image is passed either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
This operation requires permissions to perform the rekognition:IndexFaces action.
// Example sending a request using the IndexFacesRequest method. req := client.IndexFacesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) ListCollectionsRequest ¶
func (c *Rekognition) ListCollectionsRequest(input *ListCollectionsInput) ListCollectionsRequest
ListCollectionsRequest returns a request value for making API operation for Amazon Rekognition.
Returns list of collection IDs in your account. If the result is truncated, the response also provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.
For an example, see list-collection-procedure.
This operation requires permissions to perform the rekognition:ListCollections action.
// Example sending a request using the ListCollectionsRequest method. req := client.ListCollectionsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) ListFacesRequest ¶
func (c *Rekognition) ListFacesRequest(input *ListFacesInput) ListFacesRequest
ListFacesRequest returns a request value for making API operation for Amazon Rekognition.
Returns metadata for faces in the specified collection. This metadata includes information such as the bounding box coordinates, the confidence (that the bounding box contains a face), and face ID. For an example, see list-faces-in-collection-procedure.
This operation requires permissions to perform the rekognition:ListFaces action.
// Example sending a request using the ListFacesRequest method. req := client.ListFacesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) ListStreamProcessorsRequest ¶
func (c *Rekognition) ListStreamProcessorsRequest(input *ListStreamProcessorsInput) ListStreamProcessorsRequest
ListStreamProcessorsRequest returns a request value for making API operation for Amazon Rekognition.
Gets a list of stream processors that you have created with .
// Example sending a request using the ListStreamProcessorsRequest method. req := client.ListStreamProcessorsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) RecognizeCelebritiesRequest ¶
func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInput) RecognizeCelebritiesRequest
RecognizeCelebritiesRequest returns a request value for making API operation for Amazon Rekognition.
Returns an array of celebrities recognized in the input image. For more information, see celebrities.
RecognizeCelebrities returns the 100 largest faces in the image. It lists recognized celebrities in the CelebrityFaces array and unrecognized faces in the UnrecognizedFaces array. RecognizeCelebrities doesn't return celebrities whose faces are not amongst the largest 100 faces in the image.
For each celebrity recognized, the RecognizeCelebrities returns a Celebrity object. The Celebrity object contains the celebrity name, ID, URL links to additional information, match confidence, and a ComparedFace object that you can use to locate the celebrity's face on the image.
Rekognition does not retain information about which images a celebrity has been recognized in. Your application must store this information and use the Celebrity ID property as a unique identifier for the celebrity. If you don't store the celebrity name or additional information URLs returned by RecognizeCelebrities, you will need the ID to identify the celebrity in a call to the operation.
You pass the imput image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
For an example, see celebrities-procedure-image.
This operation requires permissions to perform the rekognition:RecognizeCelebrities operation.
// Example sending a request using the RecognizeCelebritiesRequest method. req := client.RecognizeCelebritiesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) SearchFacesByImageRequest ¶
func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) SearchFacesByImageRequest
SearchFacesByImageRequest returns a request value for making API operation for Amazon Rekognition.
For a given input image, first detects the largest face in the image, and then searches the specified collection for matching faces. The operation compares the features of the input face with faces in the specified collection.
To search for all faces in an input image, you might first call the operation, and then use the face IDs returned in subsequent calls to the operation.
You can also call the DetectFaces operation and use the bounding boxes in
the response to make face crops, which then you can pass in to the SearchFacesByImage operation.
You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
The response returns an array of faces that match, ordered by similarity score with the highest similarity first. More specifically, it is an array of metadata for each face match found. Along with the metadata, the response also includes a similarity indicating how similar the face is to the input face. In the response, the operation also returns the bounding box (and a confidence level that the bounding box contains a face) of the face that Amazon Rekognition used for the input image.
For an example, see search-face-with-image-procedure.
This operation requires permissions to perform the rekognition:SearchFacesByImage action.
// Example sending a request using the SearchFacesByImageRequest method. req := client.SearchFacesByImageRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) SearchFacesRequest ¶
func (c *Rekognition) SearchFacesRequest(input *SearchFacesInput) SearchFacesRequest
SearchFacesRequest returns a request value for making API operation for Amazon Rekognition.
For a given input face ID, searches for matching faces in the collection the face belongs to. You get a face ID when you add a face to the collection using the IndexFaces operation. The operation compares the features of the input face with faces in the specified collection.
You can also search faces without indexing faces by using the SearchFacesByImage operation.
The operation response returns an array of faces that match, ordered by similarity score with the highest similarity first. More specifically, it is an array of metadata for each face match that is found. Along with the metadata, the response also includes a confidence value for each face match, indicating the confidence that the specific face matches the input face.
For an example, see search-face-with-id-procedure.
This operation requires permissions to perform the rekognition:SearchFaces action.
// Example sending a request using the SearchFacesRequest method. req := client.SearchFacesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StartCelebrityRecognitionRequest ¶
func (c *Rekognition) StartCelebrityRecognitionRequest(input *StartCelebrityRecognitionInput) StartCelebrityRecognitionRequest
StartCelebrityRecognitionRequest returns a request value for making API operation for Amazon Rekognition.
Starts asynchronous recognition of celebrities in a stored video.
Rekognition Video can detect celebrities in a video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartCelebrityRecognition returns a job identifier (JobId) which you use to get the results of the analysis. When celebrity recognition analysis is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel. To get the results of the celebrity recognition analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartCelebrityRecognition. For more information, see celebrities.
// Example sending a request using the StartCelebrityRecognitionRequest method. req := client.StartCelebrityRecognitionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StartContentModerationRequest ¶
func (c *Rekognition) StartContentModerationRequest(input *StartContentModerationInput) StartContentModerationRequest
StartContentModerationRequest returns a request value for making API operation for Amazon Rekognition.
Starts asynchronous detection of explicit or suggestive adult content in a stored video.
Rekognition Video can moderate content in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartContentModeration returns a job identifier (JobId) which you use to get the results of the analysis. When content moderation analysis is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.
To get the results of the content moderation analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartContentModeration. For more information, see moderation.
// Example sending a request using the StartContentModerationRequest method. req := client.StartContentModerationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StartFaceDetectionRequest ¶
func (c *Rekognition) StartFaceDetectionRequest(input *StartFaceDetectionInput) StartFaceDetectionRequest
StartFaceDetectionRequest returns a request value for making API operation for Amazon Rekognition.
Starts asynchronous detection of faces in a stored video.
Rekognition Video can detect faces in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartFaceDetection returns a job identifier (JobId) that you use to get the results of the operation. When face detection is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel. To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartFaceDetection. For more information, see faces-video.
// Example sending a request using the StartFaceDetectionRequest method. req := client.StartFaceDetectionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StartFaceSearchRequest ¶
func (c *Rekognition) StartFaceSearchRequest(input *StartFaceSearchInput) StartFaceSearchRequest
StartFaceSearchRequest returns a request value for making API operation for Amazon Rekognition.
Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.
The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartFaceSearch returns a job identifier (JobId) which you use to get the search results once the search has completed. When searching is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel. To get the search results, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartFaceSearch. For more information, see collections-search-person.
// Example sending a request using the StartFaceSearchRequest method. req := client.StartFaceSearchRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StartLabelDetectionRequest ¶
func (c *Rekognition) StartLabelDetectionRequest(input *StartLabelDetectionInput) StartLabelDetectionRequest
StartLabelDetectionRequest returns a request value for making API operation for Amazon Rekognition.
Starts asynchronous detection of labels in a stored video.
Rekognition Video can detect labels in a video. Labels are instances of real-world entities. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; concepts like landscape, evening, and nature; and activities like a person getting out of a car or a person skiing.
The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartLabelDetection returns a job identifier (JobId) which you use to get the results of the operation. When label detection is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.
To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartLabelDetection.
// Example sending a request using the StartLabelDetectionRequest method. req := client.StartLabelDetectionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StartPersonTrackingRequest ¶
func (c *Rekognition) StartPersonTrackingRequest(input *StartPersonTrackingInput) StartPersonTrackingRequest
StartPersonTrackingRequest returns a request value for making API operation for Amazon Rekognition.
Starts the asynchronous tracking of persons in a stored video.
Rekognition Video can track persons in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartPersonTracking returns a job identifier (JobId) which you use to get the results of the operation. When label detection is finished, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.
To get the results of the person detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartPersonTracking.
// Example sending a request using the StartPersonTrackingRequest method. req := client.StartPersonTrackingRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StartStreamProcessorRequest ¶
func (c *Rekognition) StartStreamProcessorRequest(input *StartStreamProcessorInput) StartStreamProcessorRequest
StartStreamProcessorRequest returns a request value for making API operation for Amazon Rekognition.
Starts processing a stream processor. You create a stream processor by calling . To tell StartStreamProcessor which stream processor to start, use the value of the Name field specified in the call to CreateStreamProcessor.
// Example sending a request using the StartStreamProcessorRequest method. req := client.StartStreamProcessorRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Rekognition) StopStreamProcessorRequest ¶
func (c *Rekognition) StopStreamProcessorRequest(input *StopStreamProcessorInput) StopStreamProcessorRequest
StopStreamProcessorRequest returns a request value for making API operation for Amazon Rekognition.
Stops a running stream processor that was created by .
// Example sending a request using the StopStreamProcessorRequest method. req := client.StopStreamProcessorRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
type S3Object ¶
type S3Object struct { // Name of the S3 bucket. Bucket *string `min:"3" type:"string"` // S3 object key name. Name *string `min:"1" type:"string"` // If the bucket is versioning enabled, you can specify the object version. Version *string `min:"1" type:"string"` // contains filtered or unexported fields }
Provides the S3 bucket name and object name.
The region for the S3 bucket containing the S3 object must match the region you use for Amazon Rekognition operations.
For Amazon Rekognition to process an S3 object, the user must have permission to access the S3 object. For more information, see manage-access-resource-policies.
type SearchFacesByImageInput ¶
type SearchFacesByImageInput struct { // ID of the collection to search. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // (Optional) Specifies the minimum confidence in the face match to return. // For example, don't return any matches where confidence in matches is less // than 70%. FaceMatchThreshold *float64 `type:"float"` // 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. // // Image is a required field Image *Image `type:"structure" required:"true"` // Maximum number of faces to return. The operation returns the maximum number // of faces with the highest confidence in the match. MaxFaces *int64 `min:"1" type:"integer"` // contains filtered or unexported fields }
func (SearchFacesByImageInput) GoString ¶
func (s SearchFacesByImageInput) GoString() string
GoString returns the string representation
func (SearchFacesByImageInput) String ¶
func (s SearchFacesByImageInput) String() string
String returns the string representation
func (*SearchFacesByImageInput) Validate ¶
func (s *SearchFacesByImageInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SearchFacesByImageOutput ¶
type SearchFacesByImageOutput struct { // An array of faces that match the input face, along with the confidence in // the match. FaceMatches []FaceMatch `type:"list"` // Version number of the face detection model associated with the input collection // (CollectionId). FaceModelVersion *string `type:"string"` // The bounding box around the face in the input image that Amazon Rekognition // used for the search. SearchedFaceBoundingBox *BoundingBox `type:"structure"` // The level of confidence that the searchedFaceBoundingBox, contains a face. SearchedFaceConfidence *float64 `type:"float"` // contains filtered or unexported fields }
func (SearchFacesByImageOutput) GoString ¶
func (s SearchFacesByImageOutput) GoString() string
GoString returns the string representation
func (SearchFacesByImageOutput) SDKResponseMetadata ¶
func (s SearchFacesByImageOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (SearchFacesByImageOutput) String ¶
func (s SearchFacesByImageOutput) String() string
String returns the string representation
type SearchFacesByImageRequest ¶
type SearchFacesByImageRequest struct { *aws.Request Input *SearchFacesByImageInput Copy func(*SearchFacesByImageInput) SearchFacesByImageRequest }
SearchFacesByImageRequest is a API request type for the SearchFacesByImage API operation.
func (SearchFacesByImageRequest) Send ¶
func (r SearchFacesByImageRequest) Send() (*SearchFacesByImageOutput, error)
Send marshals and sends the SearchFacesByImage API request.
type SearchFacesInput ¶
type SearchFacesInput struct { // ID of the collection the face belongs to. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // ID of a face to find matches for in the collection. // // FaceId is a required field FaceId *string `type:"string" required:"true"` // Optional value specifying the minimum confidence in the face match to return. // For example, don't return any matches where confidence in matches is less // than 70%. FaceMatchThreshold *float64 `type:"float"` // Maximum number of faces to return. The operation returns the maximum number // of faces with the highest confidence in the match. MaxFaces *int64 `min:"1" type:"integer"` // contains filtered or unexported fields }
func (SearchFacesInput) GoString ¶
func (s SearchFacesInput) GoString() string
GoString returns the string representation
func (SearchFacesInput) String ¶
func (s SearchFacesInput) String() string
String returns the string representation
func (*SearchFacesInput) Validate ¶
func (s *SearchFacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SearchFacesOutput ¶
type SearchFacesOutput struct { // An array of faces that matched the input face, along with the confidence // in the match. FaceMatches []FaceMatch `type:"list"` // Version number of the face detection model associated with the input collection // (CollectionId). FaceModelVersion *string `type:"string"` // ID of the face that was searched for matches in a collection. SearchedFaceId *string `type:"string"` // contains filtered or unexported fields }
func (SearchFacesOutput) GoString ¶
func (s SearchFacesOutput) GoString() string
GoString returns the string representation
func (SearchFacesOutput) SDKResponseMetadata ¶
func (s SearchFacesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (SearchFacesOutput) String ¶
func (s SearchFacesOutput) String() string
String returns the string representation
type SearchFacesRequest ¶
type SearchFacesRequest struct { *aws.Request Input *SearchFacesInput Copy func(*SearchFacesInput) SearchFacesRequest }
SearchFacesRequest is a API request type for the SearchFaces API operation.
func (SearchFacesRequest) Send ¶
func (r SearchFacesRequest) Send() (*SearchFacesOutput, error)
Send marshals and sends the SearchFaces API request.
type Smile ¶
type Smile struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Boolean value that indicates whether the face is smiling or not. Value *bool `type:"boolean"` // contains filtered or unexported fields }
Indicates whether or not the face is smiling, and the confidence level in the determination.
type StartCelebrityRecognitionInput ¶
type StartCelebrityRecognitionInput struct { // Idempotent token used to identify the start request. If you use the same // token with multiple StartCelebrityRecognition requests, the same JobId is // returned. Use ClientRequestToken to prevent the same job from being accidently // started more than once. ClientRequestToken *string `min:"1" type:"string"` // Unique identifier you specify to identify the job in the completion status // published to the Amazon Simple Notification Service topic. JobTag *string `min:"1" type:"string"` // The Amazon SNS topic ARN that you want Rekognition Video to publish the completion // status of the celebrity recognition analysis to. NotificationChannel *NotificationChannel `type:"structure"` // The video in which you want to recognize celebrities. The video must be stored // in an Amazon S3 bucket. // // Video is a required field Video *Video `type:"structure" required:"true"` // contains filtered or unexported fields }
func (StartCelebrityRecognitionInput) GoString ¶
func (s StartCelebrityRecognitionInput) GoString() string
GoString returns the string representation
func (StartCelebrityRecognitionInput) String ¶
func (s StartCelebrityRecognitionInput) String() string
String returns the string representation
func (*StartCelebrityRecognitionInput) Validate ¶
func (s *StartCelebrityRecognitionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartCelebrityRecognitionOutput ¶
type StartCelebrityRecognitionOutput struct { // The identifier for the celebrity recognition analysis job. Use JobId to identify // the job in a subsequent call to GetCelebrityRecognition. JobId *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (StartCelebrityRecognitionOutput) GoString ¶
func (s StartCelebrityRecognitionOutput) GoString() string
GoString returns the string representation
func (StartCelebrityRecognitionOutput) SDKResponseMetadata ¶
func (s StartCelebrityRecognitionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartCelebrityRecognitionOutput) String ¶
func (s StartCelebrityRecognitionOutput) String() string
String returns the string representation
type StartCelebrityRecognitionRequest ¶
type StartCelebrityRecognitionRequest struct { *aws.Request Input *StartCelebrityRecognitionInput Copy func(*StartCelebrityRecognitionInput) StartCelebrityRecognitionRequest }
StartCelebrityRecognitionRequest is a API request type for the StartCelebrityRecognition API operation.
func (StartCelebrityRecognitionRequest) Send ¶
func (r StartCelebrityRecognitionRequest) Send() (*StartCelebrityRecognitionOutput, error)
Send marshals and sends the StartCelebrityRecognition API request.
type StartContentModerationInput ¶
type StartContentModerationInput struct { // Idempotent token used to identify the start request. If you use the same // token with multiple StartContentModeration requests, the same JobId is returned. // Use ClientRequestToken to prevent the same job from being accidently started // more than once. ClientRequestToken *string `min:"1" type:"string"` // Unique identifier you specify to identify the job in the completion status // published to the Amazon Simple Notification Service topic. JobTag *string `min:"1" type:"string"` // Specifies the minimum confidence that Amazon Rekognition must have in order // to return a moderated content label. Confidence represents how certain Amazon // Rekognition is that the moderated content is correctly identified. 0 is the // lowest confidence. 100 is the highest confidence. Amazon Rekognition doesn't // return any moderated content labels with a confidence level lower than this // specified value. MinConfidence *float64 `type:"float"` // The Amazon SNS topic ARN that you want Rekognition Video to publish the completion // status of the content moderation analysis to. NotificationChannel *NotificationChannel `type:"structure"` // The video in which you want to moderate content. The video must be stored // in an Amazon S3 bucket. // // Video is a required field Video *Video `type:"structure" required:"true"` // contains filtered or unexported fields }
func (StartContentModerationInput) GoString ¶
func (s StartContentModerationInput) GoString() string
GoString returns the string representation
func (StartContentModerationInput) String ¶
func (s StartContentModerationInput) String() string
String returns the string representation
func (*StartContentModerationInput) Validate ¶
func (s *StartContentModerationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartContentModerationOutput ¶
type StartContentModerationOutput struct { // The identifier for the content moderation analysis job. Use JobId to identify // the job in a subsequent call to GetContentModeration. JobId *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (StartContentModerationOutput) GoString ¶
func (s StartContentModerationOutput) GoString() string
GoString returns the string representation
func (StartContentModerationOutput) SDKResponseMetadata ¶
func (s StartContentModerationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartContentModerationOutput) String ¶
func (s StartContentModerationOutput) String() string
String returns the string representation
type StartContentModerationRequest ¶
type StartContentModerationRequest struct { *aws.Request Input *StartContentModerationInput Copy func(*StartContentModerationInput) StartContentModerationRequest }
StartContentModerationRequest is a API request type for the StartContentModeration API operation.
func (StartContentModerationRequest) Send ¶
func (r StartContentModerationRequest) Send() (*StartContentModerationOutput, error)
Send marshals and sends the StartContentModeration API request.
type StartFaceDetectionInput ¶
type StartFaceDetectionInput struct { // Idempotent token used to identify the start request. If you use the same // token with multiple StartFaceDetection requests, the same JobId is returned. // Use ClientRequestToken to prevent the same job from being accidently started // more than once. ClientRequestToken *string `min:"1" type:"string"` // The face attributes you want returned. // // DEFAULT - The following subset of facial attributes are returned: BoundingBox, // Confidence, Pose, Quality and Landmarks. // // ALL - All facial attributes are returned. FaceAttributes FaceAttributes `type:"string" enum:"true"` // Unique identifier you specify to identify the job in the completion status // published to the Amazon Simple Notification Service topic. JobTag *string `min:"1" type:"string"` // The ARN of the Amazon SNS topic to which you want Rekognition Video to publish // the completion status of the face detection operation. NotificationChannel *NotificationChannel `type:"structure"` // The video in which you want to detect faces. The video must be stored in // an Amazon S3 bucket. // // Video is a required field Video *Video `type:"structure" required:"true"` // contains filtered or unexported fields }
func (StartFaceDetectionInput) GoString ¶
func (s StartFaceDetectionInput) GoString() string
GoString returns the string representation
func (StartFaceDetectionInput) String ¶
func (s StartFaceDetectionInput) String() string
String returns the string representation
func (*StartFaceDetectionInput) Validate ¶
func (s *StartFaceDetectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartFaceDetectionOutput ¶
type StartFaceDetectionOutput struct { // The identifier for the face detection job. Use JobId to identify the job // in a subsequent call to GetFaceDetection. JobId *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (StartFaceDetectionOutput) GoString ¶
func (s StartFaceDetectionOutput) GoString() string
GoString returns the string representation
func (StartFaceDetectionOutput) SDKResponseMetadata ¶
func (s StartFaceDetectionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartFaceDetectionOutput) String ¶
func (s StartFaceDetectionOutput) String() string
String returns the string representation
type StartFaceDetectionRequest ¶
type StartFaceDetectionRequest struct { *aws.Request Input *StartFaceDetectionInput Copy func(*StartFaceDetectionInput) StartFaceDetectionRequest }
StartFaceDetectionRequest is a API request type for the StartFaceDetection API operation.
func (StartFaceDetectionRequest) Send ¶
func (r StartFaceDetectionRequest) Send() (*StartFaceDetectionOutput, error)
Send marshals and sends the StartFaceDetection API request.
type StartFaceSearchInput ¶
type StartFaceSearchInput struct { // Idempotent token used to identify the start request. If you use the same // token with multiple StartFaceSearch requests, the same JobId is returned. // Use ClientRequestToken to prevent the same job from being accidently started // more than once. ClientRequestToken *string `min:"1" type:"string"` // ID of the collection that contains the faces you want to search for. // // CollectionId is a required field CollectionId *string `min:"1" type:"string" required:"true"` // The minimum confidence in the person match to return. For example, don't // return any matches where confidence in matches is less than 70%. FaceMatchThreshold *float64 `type:"float"` // Unique identifier you specify to identify the job in the completion status // published to the Amazon Simple Notification Service topic. JobTag *string `min:"1" type:"string"` // The ARN of the Amazon SNS topic to which you want Rekognition Video to publish // the completion status of the search. NotificationChannel *NotificationChannel `type:"structure"` // The video you want to search. The video must be stored in an Amazon S3 bucket. // // Video is a required field Video *Video `type:"structure" required:"true"` // contains filtered or unexported fields }
func (StartFaceSearchInput) GoString ¶
func (s StartFaceSearchInput) GoString() string
GoString returns the string representation
func (StartFaceSearchInput) String ¶
func (s StartFaceSearchInput) String() string
String returns the string representation
func (*StartFaceSearchInput) Validate ¶
func (s *StartFaceSearchInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartFaceSearchOutput ¶
type StartFaceSearchOutput struct { // The identifier for the search job. Use JobId to identify the job in a subsequent // call to GetFaceSearch. JobId *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (StartFaceSearchOutput) GoString ¶
func (s StartFaceSearchOutput) GoString() string
GoString returns the string representation
func (StartFaceSearchOutput) SDKResponseMetadata ¶
func (s StartFaceSearchOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartFaceSearchOutput) String ¶
func (s StartFaceSearchOutput) String() string
String returns the string representation
type StartFaceSearchRequest ¶
type StartFaceSearchRequest struct { *aws.Request Input *StartFaceSearchInput Copy func(*StartFaceSearchInput) StartFaceSearchRequest }
StartFaceSearchRequest is a API request type for the StartFaceSearch API operation.
func (StartFaceSearchRequest) Send ¶
func (r StartFaceSearchRequest) Send() (*StartFaceSearchOutput, error)
Send marshals and sends the StartFaceSearch API request.
type StartLabelDetectionInput ¶
type StartLabelDetectionInput struct { // Idempotent token used to identify the start request. If you use the same // token with multiple StartLabelDetection requests, the same JobId is returned. // Use ClientRequestToken to prevent the same job from being accidently started // more than once. ClientRequestToken *string `min:"1" type:"string"` // Unique identifier you specify to identify the job in the completion status // published to the Amazon Simple Notification Service topic. JobTag *string `min:"1" type:"string"` // Specifies the minimum confidence that Rekognition Video must have in order // to return a detected label. Confidence represents how certain Amazon Rekognition // is that a label is correctly identified.0 is the lowest confidence. 100 is // the highest confidence. Rekognition Video 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. MinConfidence *float64 `type:"float"` // The Amazon SNS topic ARN you want Rekognition Video to publish the completion // status of the label detection operation to. NotificationChannel *NotificationChannel `type:"structure"` // The video in which you want to detect labels. The video must be stored in // an Amazon S3 bucket. // // Video is a required field Video *Video `type:"structure" required:"true"` // contains filtered or unexported fields }
func (StartLabelDetectionInput) GoString ¶
func (s StartLabelDetectionInput) GoString() string
GoString returns the string representation
func (StartLabelDetectionInput) String ¶
func (s StartLabelDetectionInput) String() string
String returns the string representation
func (*StartLabelDetectionInput) Validate ¶
func (s *StartLabelDetectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartLabelDetectionOutput ¶
type StartLabelDetectionOutput struct { // The identifier for the label detection job. Use JobId to identify the job // in a subsequent call to GetLabelDetection. JobId *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (StartLabelDetectionOutput) GoString ¶
func (s StartLabelDetectionOutput) GoString() string
GoString returns the string representation
func (StartLabelDetectionOutput) SDKResponseMetadata ¶
func (s StartLabelDetectionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartLabelDetectionOutput) String ¶
func (s StartLabelDetectionOutput) String() string
String returns the string representation
type StartLabelDetectionRequest ¶
type StartLabelDetectionRequest struct { *aws.Request Input *StartLabelDetectionInput Copy func(*StartLabelDetectionInput) StartLabelDetectionRequest }
StartLabelDetectionRequest is a API request type for the StartLabelDetection API operation.
func (StartLabelDetectionRequest) Send ¶
func (r StartLabelDetectionRequest) Send() (*StartLabelDetectionOutput, error)
Send marshals and sends the StartLabelDetection API request.
type StartPersonTrackingInput ¶
type StartPersonTrackingInput struct { // Idempotent token used to identify the start request. If you use the same // token with multiple StartPersonTracking requests, the same JobId is returned. // Use ClientRequestToken to prevent the same job from being accidently started // more than once. ClientRequestToken *string `min:"1" type:"string"` // Unique identifier you specify to identify the job in the completion status // published to the Amazon Simple Notification Service topic. JobTag *string `min:"1" type:"string"` // The Amazon SNS topic ARN you want Rekognition Video to publish the completion // status of the people detection operation to. NotificationChannel *NotificationChannel `type:"structure"` // The video in which you want to detect people. The video must be stored in // an Amazon S3 bucket. // // Video is a required field Video *Video `type:"structure" required:"true"` // contains filtered or unexported fields }
func (StartPersonTrackingInput) GoString ¶
func (s StartPersonTrackingInput) GoString() string
GoString returns the string representation
func (StartPersonTrackingInput) String ¶
func (s StartPersonTrackingInput) String() string
String returns the string representation
func (*StartPersonTrackingInput) Validate ¶
func (s *StartPersonTrackingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartPersonTrackingOutput ¶
type StartPersonTrackingOutput struct { // The identifier for the person detection job. Use JobId to identify the job // in a subsequent call to GetPersonTracking. JobId *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (StartPersonTrackingOutput) GoString ¶
func (s StartPersonTrackingOutput) GoString() string
GoString returns the string representation
func (StartPersonTrackingOutput) SDKResponseMetadata ¶
func (s StartPersonTrackingOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartPersonTrackingOutput) String ¶
func (s StartPersonTrackingOutput) String() string
String returns the string representation
type StartPersonTrackingRequest ¶
type StartPersonTrackingRequest struct { *aws.Request Input *StartPersonTrackingInput Copy func(*StartPersonTrackingInput) StartPersonTrackingRequest }
StartPersonTrackingRequest is a API request type for the StartPersonTracking API operation.
func (StartPersonTrackingRequest) Send ¶
func (r StartPersonTrackingRequest) Send() (*StartPersonTrackingOutput, error)
Send marshals and sends the StartPersonTracking API request.
type StartStreamProcessorInput ¶
type StartStreamProcessorInput struct { // The name of the stream processor to start processing. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StartStreamProcessorInput) GoString ¶
func (s StartStreamProcessorInput) GoString() string
GoString returns the string representation
func (StartStreamProcessorInput) String ¶
func (s StartStreamProcessorInput) String() string
String returns the string representation
func (*StartStreamProcessorInput) Validate ¶
func (s *StartStreamProcessorInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartStreamProcessorOutput ¶
type StartStreamProcessorOutput struct {
// contains filtered or unexported fields
}
func (StartStreamProcessorOutput) GoString ¶
func (s StartStreamProcessorOutput) GoString() string
GoString returns the string representation
func (StartStreamProcessorOutput) SDKResponseMetadata ¶
func (s StartStreamProcessorOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StartStreamProcessorOutput) String ¶
func (s StartStreamProcessorOutput) String() string
String returns the string representation
type StartStreamProcessorRequest ¶
type StartStreamProcessorRequest struct { *aws.Request Input *StartStreamProcessorInput Copy func(*StartStreamProcessorInput) StartStreamProcessorRequest }
StartStreamProcessorRequest is a API request type for the StartStreamProcessor API operation.
func (StartStreamProcessorRequest) Send ¶
func (r StartStreamProcessorRequest) Send() (*StartStreamProcessorOutput, error)
Send marshals and sends the StartStreamProcessor API request.
type StopStreamProcessorInput ¶
type StopStreamProcessorInput struct { // The name of a stream processor created by . // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StopStreamProcessorInput) GoString ¶
func (s StopStreamProcessorInput) GoString() string
GoString returns the string representation
func (StopStreamProcessorInput) String ¶
func (s StopStreamProcessorInput) String() string
String returns the string representation
func (*StopStreamProcessorInput) Validate ¶
func (s *StopStreamProcessorInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopStreamProcessorOutput ¶
type StopStreamProcessorOutput struct {
// contains filtered or unexported fields
}
func (StopStreamProcessorOutput) GoString ¶
func (s StopStreamProcessorOutput) GoString() string
GoString returns the string representation
func (StopStreamProcessorOutput) SDKResponseMetadata ¶
func (s StopStreamProcessorOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (StopStreamProcessorOutput) String ¶
func (s StopStreamProcessorOutput) String() string
String returns the string representation
type StopStreamProcessorRequest ¶
type StopStreamProcessorRequest struct { *aws.Request Input *StopStreamProcessorInput Copy func(*StopStreamProcessorInput) StopStreamProcessorRequest }
StopStreamProcessorRequest is a API request type for the StopStreamProcessor API operation.
func (StopStreamProcessorRequest) Send ¶
func (r StopStreamProcessorRequest) Send() (*StopStreamProcessorOutput, error)
Send marshals and sends the StopStreamProcessor API request.
type StreamProcessor ¶
type StreamProcessor struct { // Name of the Amazon Rekognition stream processor. Name *string `min:"1" type:"string"` // Current status of the Amazon Rekognition stream processor. Status StreamProcessorStatus `type:"string" enum:"true"` // contains filtered or unexported fields }
An object that recognizes faces in a streaming video. An Amazon Rekognition stream processor is created by a call to . The request parameters for CreateStreamProcessor describe the Kinesis video stream source for the streaming video, face recognition parameters, and where to stream the analysis resullts.
func (StreamProcessor) GoString ¶
func (s StreamProcessor) GoString() string
GoString returns the string representation
func (StreamProcessor) String ¶
func (s StreamProcessor) String() string
String returns the string representation
type StreamProcessorInput ¶
type StreamProcessorInput struct { // The Kinesis video stream input stream for the source streaming video. KinesisVideoStream *KinesisVideoStream `type:"structure"` // contains filtered or unexported fields }
Information about the source streaming video.
func (StreamProcessorInput) GoString ¶
func (s StreamProcessorInput) GoString() string
GoString returns the string representation
func (StreamProcessorInput) String ¶
func (s StreamProcessorInput) String() string
String returns the string representation
type StreamProcessorOutput ¶
type StreamProcessorOutput struct { // The Amazon Kinesis Data Streams stream to which the Amazon Rekognition stream // processor streams the analysis results. KinesisDataStream *KinesisDataStream `type:"structure"` // contains filtered or unexported fields }
Information about the Amazon Kinesis Data Streams stream to which a Rekognition Video stream processor streams the results of a video analysis. For more information, see .
func (StreamProcessorOutput) GoString ¶
func (s StreamProcessorOutput) GoString() string
GoString returns the string representation
func (StreamProcessorOutput) String ¶
func (s StreamProcessorOutput) String() string
String returns the string representation
type StreamProcessorSettings ¶
type StreamProcessorSettings struct { // Face search settings to use on a streaming video. FaceSearch *FaceSearchSettings `type:"structure"` // contains filtered or unexported fields }
Input parameters used to recognize faces in a streaming video analyzed by a Amazon Rekognition stream processor.
func (StreamProcessorSettings) GoString ¶
func (s StreamProcessorSettings) GoString() string
GoString returns the string representation
func (StreamProcessorSettings) String ¶
func (s StreamProcessorSettings) String() string
String returns the string representation
func (*StreamProcessorSettings) Validate ¶
func (s *StreamProcessorSettings) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StreamProcessorStatus ¶
type StreamProcessorStatus string
const ( StreamProcessorStatusStopped StreamProcessorStatus = "STOPPED" StreamProcessorStatusStarting StreamProcessorStatus = "STARTING" StreamProcessorStatusRunning StreamProcessorStatus = "RUNNING" StreamProcessorStatusFailed StreamProcessorStatus = "FAILED" StreamProcessorStatusStopping StreamProcessorStatus = "STOPPING" )
Enum values for StreamProcessorStatus
func (StreamProcessorStatus) MarshalValue ¶
func (enum StreamProcessorStatus) MarshalValue() (string, error)
func (StreamProcessorStatus) MarshalValueBuf ¶
func (enum StreamProcessorStatus) MarshalValueBuf(b []byte) ([]byte, error)
type Sunglasses ¶
type Sunglasses struct { // Level of confidence in the determination. Confidence *float64 `type:"float"` // Boolean value that indicates whether the face is wearing sunglasses or not. Value *bool `type:"boolean"` // contains filtered or unexported fields }
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
func (Sunglasses) GoString ¶
func (s Sunglasses) GoString() string
GoString returns the string representation
func (Sunglasses) String ¶
func (s Sunglasses) String() string
String returns the string representation
type TextDetection ¶
type TextDetection struct { // The confidence that Amazon Rekognition has in the accuracy of the detected // text and the accuracy of the geometry points around the detected text. Confidence *float64 `type:"float"` // The word or line of text recognized by Amazon Rekognition. DetectedText *string `type:"string"` // The location of the detected text on the image. Includes an axis aligned // coarse bounding box surrounding the text and a finer grain polygon for more // accurate spatial information. Geometry *Geometry `type:"structure"` // The identifier for the detected text. The identifier is only unique for a // single call to DetectText. Id *int64 `type:"integer"` // The Parent identifier for the detected text identified by the value of ID. // If the type of detected text is LINE, the value of ParentId is Null. ParentId *int64 `type:"integer"` // The type of text that was detected. Type TextTypes `type:"string" enum:"true"` // contains filtered or unexported fields }
Information about a word or line of text detected by .
The DetectedText field contains the text that Amazon Rekognition detected in the image.
Every word and line has an identifier (Id). Each word belongs to a line and has a parent identifier (ParentId) that identifies the line of text in which the word appears. The word Id is also an index for the word within a line of words.
For more information, see text-detection.
func (TextDetection) GoString ¶
func (s TextDetection) GoString() string
GoString returns the string representation
func (TextDetection) String ¶
func (s TextDetection) String() string
String returns the string representation
type Video ¶
type Video struct { // The Amazon S3 bucket name and file name for the video. S3Object *S3Object `type:"structure"` // contains filtered or unexported fields }
Video file stored in an Amazon S3 bucket. Amazon Rekognition video start operations such as use Video to specify a video for analysis. The supported file formats are .mp4, .mov and .avi.
type VideoJobStatus ¶
type VideoJobStatus string
const ( VideoJobStatusInProgress VideoJobStatus = "IN_PROGRESS" VideoJobStatusSucceeded VideoJobStatus = "SUCCEEDED" VideoJobStatusFailed VideoJobStatus = "FAILED" )
Enum values for VideoJobStatus
func (VideoJobStatus) MarshalValue ¶
func (enum VideoJobStatus) MarshalValue() (string, error)
func (VideoJobStatus) MarshalValueBuf ¶
func (enum VideoJobStatus) MarshalValueBuf(b []byte) ([]byte, error)
type VideoMetadata ¶
type VideoMetadata struct { // Type of compression used in the analyzed video. Codec *string `type:"string"` // Length of the video in milliseconds. DurationMillis *int64 `type:"long"` // Format of the analyzed video. Possible values are MP4, MOV and AVI. Format *string `type:"string"` // Vertical pixel dimension of the video. FrameHeight *int64 `type:"long"` // Number of frames per second in the video. FrameRate *float64 `type:"float"` // Horizontal pixel dimension of the video. FrameWidth *int64 `type:"long"` // contains filtered or unexported fields }
Information about a video that Amazon Rekognition analyzed. Videometadata is returned in every page of paginated responses from a Amazon Rekognition video operation.
func (VideoMetadata) GoString ¶
func (s VideoMetadata) GoString() string
GoString returns the string representation
func (VideoMetadata) String ¶
func (s VideoMetadata) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package rekognitioniface provides an interface to enable mocking the Amazon Rekognition service client for testing your code.
|
Package rekognitioniface provides an interface to enable mocking the Amazon Rekognition service client for testing your code. |