public class StartTextDetectionFilters
extends java.lang.Object
implements java.io.Serializable
Set of optional parameters that let you set the criteria 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 screen to look for text in.
Constructor and Description |
---|
StartTextDetectionFilters() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<RegionOfInterest> |
getRegionsOfInterest()
Filter focusing on a certain area of the frame.
|
DetectionFilter |
getWordFilter()
Filters focusing on qualities of the text, such as confidence or size.
|
int |
hashCode() |
void |
setRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsOfInterest)
Filter focusing on a certain area of the frame.
|
void |
setWordFilter(DetectionFilter wordFilter)
Filters focusing on qualities of the text, such as confidence or size.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartTextDetectionFilters |
withRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsOfInterest)
Filter focusing on a certain area of the frame.
|
StartTextDetectionFilters |
withRegionsOfInterest(RegionOfInterest... regionsOfInterest)
Filter focusing on a certain area of the frame.
|
StartTextDetectionFilters |
withWordFilter(DetectionFilter wordFilter)
Filters focusing on qualities of the text, such as confidence or size.
|
public DetectionFilter getWordFilter()
Filters focusing on qualities of the text, such as confidence or size.
Filters focusing on qualities of the text, such as confidence or size.
public void setWordFilter(DetectionFilter wordFilter)
Filters focusing on qualities of the text, such as confidence or size.
wordFilter
- Filters focusing on qualities of the text, such as confidence or size.
public StartTextDetectionFilters withWordFilter(DetectionFilter wordFilter)
Filters focusing on qualities of the text, such as confidence or size.
Returns a reference to this object so that method calls can be chained together.
wordFilter
- Filters focusing on qualities of the text, such as confidence or size.
public java.util.List<RegionOfInterest> getRegionsOfInterest()
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the screen.
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the screen.
public void setRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsOfInterest)
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the screen.
regionsOfInterest
-
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the
screen.
public StartTextDetectionFilters withRegionsOfInterest(RegionOfInterest... regionsOfInterest)
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the screen.
Returns a reference to this object so that method calls can be chained together.
regionsOfInterest
-
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the
screen.
public StartTextDetectionFilters withRegionsOfInterest(java.util.Collection<RegionOfInterest> regionsOfInterest)
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the screen.
Returns a reference to this object so that method calls can be chained together.
regionsOfInterest
-
Filter focusing on a certain area of the frame. Uses a
BoundingBox
object to set the region of the
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.