public class DetectionFilter
extends java.lang.Object
implements java.io.Serializable
A set of parameters that allow you to filter out certain results from your returned results.
Constructor and Description |
---|
DetectionFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Float |
getMinBoundingBoxHeight()
Sets the minimum height of the word bounding box.
|
java.lang.Float |
getMinBoundingBoxWidth()
Sets the minimum width of the word bounding box.
|
java.lang.Float |
getMinConfidence()
Sets confidence of word detection.
|
int |
hashCode() |
void |
setMinBoundingBoxHeight(java.lang.Float minBoundingBoxHeight)
Sets the minimum height of the word bounding box.
|
void |
setMinBoundingBoxWidth(java.lang.Float minBoundingBoxWidth)
Sets the minimum width of the word bounding box.
|
void |
setMinConfidence(java.lang.Float minConfidence)
Sets confidence of word detection.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectionFilter |
withMinBoundingBoxHeight(java.lang.Float minBoundingBoxHeight)
Sets the minimum height of the word bounding box.
|
DetectionFilter |
withMinBoundingBoxWidth(java.lang.Float minBoundingBoxWidth)
Sets the minimum width of the word bounding box.
|
DetectionFilter |
withMinConfidence(java.lang.Float minConfidence)
Sets confidence of word detection.
|
public java.lang.Float getMinConfidence()
Sets confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0.5 and 1 as Text in Video will not return any result below 0.5.
Constraints:
Length: 0 - 100
Sets confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0.5 and 1 as Text in Video will not return any result below 0.5.
public void setMinConfidence(java.lang.Float minConfidence)
Sets confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0.5 and 1 as Text in Video will not return any result below 0.5.
Constraints:
Length: 0 - 100
minConfidence
- Sets confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0.5 and 1 as Text in Video will not return any result below 0.5.
public DetectionFilter withMinConfidence(java.lang.Float minConfidence)
Sets confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0.5 and 1 as Text in Video will not return any result below 0.5.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
minConfidence
- Sets confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0.5 and 1 as Text in Video will not return any result below 0.5.
public java.lang.Float getMinBoundingBoxHeight()
Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.
Constraints:
Length: 0 - 1
Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.
public void setMinBoundingBoxHeight(java.lang.Float minBoundingBoxHeight)
Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.
Constraints:
Length: 0 - 1
minBoundingBoxHeight
- Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.
public DetectionFilter withMinBoundingBoxHeight(java.lang.Float minBoundingBoxHeight)
Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1
minBoundingBoxHeight
- Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.
public java.lang.Float getMinBoundingBoxWidth()
Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.
Constraints:
Length: 0 - 1
Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.
public void setMinBoundingBoxWidth(java.lang.Float minBoundingBoxWidth)
Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.
Constraints:
Length: 0 - 1
minBoundingBoxWidth
- Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.
public DetectionFilter withMinBoundingBoxWidth(java.lang.Float minBoundingBoxWidth)
Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1
minBoundingBoxWidth
- Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.
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.