@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectTextFilters extends Object implements Serializable, Cloneable, StructuredPojo
A set of optional parameters that you can use to set the criteria that the text must meet to be included in your
response. WordFilter
looks at a word’s height, width, and minimum confidence.
RegionOfInterest
lets you set a specific region of the image to look for text in.
Constructor and Description |
---|
DetectTextFilters() |
Modifier and Type | Method and Description |
---|---|
DetectTextFilters |
clone() |
boolean |
equals(Object obj) |
List<RegionOfInterest> |
getRegionsOfInterest()
A Filter focusing on a certain area of the image.
|
DetectionFilter |
getWordFilter() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRegionsOfInterest(Collection<RegionOfInterest> regionsOfInterest)
A Filter focusing on a certain area of the image.
|
void |
setWordFilter(DetectionFilter wordFilter) |
String |
toString()
Returns a string representation of this object.
|
DetectTextFilters |
withRegionsOfInterest(Collection<RegionOfInterest> regionsOfInterest)
A Filter focusing on a certain area of the image.
|
DetectTextFilters |
withRegionsOfInterest(RegionOfInterest... regionsOfInterest)
A Filter focusing on a certain area of the image.
|
DetectTextFilters |
withWordFilter(DetectionFilter wordFilter) |
public void setWordFilter(DetectionFilter wordFilter)
wordFilter
- public DetectionFilter getWordFilter()
public DetectTextFilters withWordFilter(DetectionFilter wordFilter)
wordFilter
- public List<RegionOfInterest> getRegionsOfInterest()
A Filter focusing on a certain area of the image. Uses a BoundingBox
object to set the region of the
image.
BoundingBox
object to set the
region of the image.public void setRegionsOfInterest(Collection<RegionOfInterest> regionsOfInterest)
A Filter focusing on a certain area of the image. Uses a BoundingBox
object to set the region of the
image.
regionsOfInterest
- A Filter focusing on a certain area of the image. Uses a BoundingBox
object to set the region
of the image.public DetectTextFilters withRegionsOfInterest(RegionOfInterest... regionsOfInterest)
A Filter focusing on a certain area of the image. Uses a BoundingBox
object to set the region of the
image.
NOTE: This method appends the values to the existing list (if any). Use
setRegionsOfInterest(java.util.Collection)
or withRegionsOfInterest(java.util.Collection)
if
you want to override the existing values.
regionsOfInterest
- A Filter focusing on a certain area of the image. Uses a BoundingBox
object to set the region
of the image.public DetectTextFilters withRegionsOfInterest(Collection<RegionOfInterest> regionsOfInterest)
A Filter focusing on a certain area of the image. Uses a BoundingBox
object to set the region of the
image.
regionsOfInterest
- A Filter focusing on a certain area of the image. Uses a BoundingBox
object to set the region
of the image.public String toString()
toString
in class Object
Object.toString()
public DetectTextFilters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.