@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegionOfInterest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a location within the frame that Rekognition checks for text. Uses a BoundingBox
object to set
a region of the screen.
A word is included in the region if the word is more than half in that region. If there is more than one region, the word will be compared with all regions of the screen. Any word more than half in a region is kept in the results.
Constructor and Description |
---|
RegionOfInterest() |
Modifier and Type | Method and Description |
---|---|
RegionOfInterest |
clone() |
boolean |
equals(Object obj) |
BoundingBox |
getBoundingBox()
The box representing a region of interest on screen.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBoundingBox(BoundingBox boundingBox)
The box representing a region of interest on screen.
|
String |
toString()
Returns a string representation of this object.
|
RegionOfInterest |
withBoundingBox(BoundingBox boundingBox)
The box representing a region of interest on screen.
|
public void setBoundingBox(BoundingBox boundingBox)
The box representing a region of interest on screen.
boundingBox
- The box representing a region of interest on screen.public BoundingBox getBoundingBox()
The box representing a region of interest on screen.
public RegionOfInterest withBoundingBox(BoundingBox boundingBox)
The box representing a region of interest on screen.
boundingBox
- The box representing a region of interest on screen.public String toString()
toString
in class Object
Object.toString()
public RegionOfInterest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.