public class UnindexedFace
extends java.lang.Object
implements java.io.Serializable
A face that IndexFaces detected, but didn't index. Use the
Reasons
response attribute to determine why a face wasn't
indexed.
Constructor and Description |
---|
UnindexedFace() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
FaceDetail |
getFaceDetail()
The structure that contains attributes of a face that
IndexFaces detected, but didn't index. |
java.util.List<java.lang.String> |
getReasons()
An array of reasons that specify why a face wasn't indexed.
|
int |
hashCode() |
void |
setFaceDetail(FaceDetail faceDetail)
The structure that contains attributes of a face that
IndexFaces detected, but didn't index. |
void |
setReasons(java.util.Collection<java.lang.String> reasons)
An array of reasons that specify why a face wasn't indexed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UnindexedFace |
withFaceDetail(FaceDetail faceDetail)
The structure that contains attributes of a face that
IndexFaces detected, but didn't index. |
UnindexedFace |
withReasons(java.util.Collection<java.lang.String> reasons)
An array of reasons that specify why a face wasn't indexed.
|
UnindexedFace |
withReasons(java.lang.String... reasons)
An array of reasons that specify why a face wasn't indexed.
|
public java.util.List<java.lang.String> getReasons()
An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already higher than
that specified by the MaxFaces
input parameter for
IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already
higher than that specified by the MaxFaces
input
parameter for IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
public void setReasons(java.util.Collection<java.lang.String> reasons)
An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already higher than
that specified by the MaxFaces
input parameter for
IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
reasons
- An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already
higher than that specified by the MaxFaces
input
parameter for IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
public UnindexedFace withReasons(java.lang.String... reasons)
An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already higher than
that specified by the MaxFaces
input parameter for
IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
Returns a reference to this object so that method calls can be chained together.
reasons
- An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already
higher than that specified by the MaxFaces
input
parameter for IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
public UnindexedFace withReasons(java.util.Collection<java.lang.String> reasons)
An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already higher than
that specified by the MaxFaces
input parameter for
IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
Returns a reference to this object so that method calls can be chained together.
reasons
- An array of reasons that specify why a face wasn't indexed.
EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.
EXCEEDS_MAX_FACES - The number of faces detected is already
higher than that specified by the MaxFaces
input
parameter for IndexFaces
.
LOW_BRIGHTNESS - The image is too dark.
LOW_SHARPNESS - The image is too blurry.
LOW_CONFIDENCE - The face was detected with a low confidence.
SMALL_BOUNDING_BOX - The bounding box around the face is too small.
public FaceDetail getFaceDetail()
The structure that contains attributes of a face that
IndexFaces
detected, but didn't index.
The structure that contains attributes of a face that
IndexFaces
detected, but didn't index.
public void setFaceDetail(FaceDetail faceDetail)
The structure that contains attributes of a face that
IndexFaces
detected, but didn't index.
faceDetail
-
The structure that contains attributes of a face that
IndexFaces
detected, but didn't index.
public UnindexedFace withFaceDetail(FaceDetail faceDetail)
The structure that contains attributes of a face that
IndexFaces
detected, but didn't index.
Returns a reference to this object so that method calls can be chained together.
faceDetail
-
The structure that contains attributes of a face that
IndexFaces
detected, but didn't index.
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.