Class: Aws::Rekognition::Types::RegionOfInterest

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

Overview

Note:

When making an API call, you may pass RegionOfInterest data as a hash:

{
  bounding_box: {
    width: 1.0,
    height: 1.0,
    left: 1.0,
    top: 1.0,
  },
  polygon: [
    {
      x: 1.0,
      y: 1.0,
    },
  ],
}

Specifies a location within the frame that Rekognition checks for objects of interest such as text, labels, or faces. It uses a BoundingBox or Polygon to set a region of the screen.

A word, face, or label is included in the region if it is more than half in that region. If there is more than one region, the word, face, or label is compared with all regions of the screen. Any object of interest that is more than half in a region is kept in the results.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bounding_boxTypes::BoundingBox

The box representing a region of interest on screen.

Returns:



5737
5738
5739
5740
5741
5742
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 5737

class RegionOfInterest < Struct.new(
  :bounding_box,
  :polygon)
  SENSITIVE = []
  include Aws::Structure
end

#polygonArray<Types::Point>

Specifies a shape made up of up to 10 Point objects to define a region of interest.

Returns:



5737
5738
5739
5740
5741
5742
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 5737

class RegionOfInterest < Struct.new(
  :bounding_box,
  :polygon)
  SENSITIVE = []
  include Aws::Structure
end