public class DetectTextFilters
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<RegionOfInterest> |
getRegionsOfInterest()
A Filter focusing on a certain area of the image.
|
DetectionFilter |
getWordFilter()
A set of parameters that allow you to filter out certain results from
your returned results.
|
int |
hashCode() |
void |
setRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsOfInterest)
A Filter focusing on a certain area of the image.
|
void |
setWordFilter(DetectionFilter wordFilter)
A set of parameters that allow you to filter out certain results from
your returned results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectTextFilters |
withRegionsOfInterest(java.util.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)
A set of parameters that allow you to filter out certain results from
your returned results.
|
public DetectionFilter getWordFilter()
A set of parameters that allow you to filter out certain results from your returned results.
A set of parameters that allow you to filter out certain results from your returned results.
public void setWordFilter(DetectionFilter wordFilter)
A set of parameters that allow you to filter out certain results from your returned results.
wordFilter
- A set of parameters that allow you to filter out certain results from your returned results.
public DetectTextFilters withWordFilter(DetectionFilter wordFilter)
A set of parameters that allow you to filter out certain results from your returned results.
Returns a reference to this object so that method calls can be chained together.
wordFilter
- A set of parameters that allow you to filter out certain results from your returned results.
public java.util.List<RegionOfInterest> getRegionsOfInterest()
A Filter focusing on a certain area of the image. Uses a
BoundingBox
object to set the region of the image.
A Filter focusing on a certain area of the image. Uses a
BoundingBox
object to set the region of the image.
public void setRegionsOfInterest(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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(java.util.Collection<RegionOfInterest> regionsOfInterest)
A Filter focusing on a certain area of the image. Uses a
BoundingBox
object to set the region of the image.
Returns a reference to this object so that method calls can be chained together.
regionsOfInterest
-
A Filter focusing on a certain area of the image. Uses a
BoundingBox
object to set the region of the
image.
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.