public class RegionOfInterest
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
The box representing a region of interest on screen.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
The box representing a region of interest on screen.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegionOfInterest |
withBoundingBox(BoundingBox boundingBox)
The box representing a region of interest on screen.
|
public BoundingBox getBoundingBox()
The box representing a region of interest on screen.
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 RegionOfInterest withBoundingBox(BoundingBox boundingBox)
The box representing a region of interest on screen.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- The box representing a region of interest on screen.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.