public class Face
extends java.lang.Object
implements java.io.Serializable
Describes the face properties such as the bounding box, face ID, image ID of the input image, and external image ID that you assigned.
Constructor and Description |
---|
Face() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
Bounding box of the face.
|
java.lang.Float |
getConfidence()
Confidence level that the bounding box contains a face (and not a
different object such as a tree).
|
java.lang.String |
getExternalImageId()
Identifier that you assign to all the faces in the input image.
|
java.lang.String |
getFaceId()
Unique identifier that Amazon Rekognition assigns to the face.
|
java.lang.String |
getImageId()
Unique identifier that Amazon Rekognition assigns to the input image.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
void |
setConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a
different object such as a tree).
|
void |
setExternalImageId(java.lang.String externalImageId)
Identifier that you assign to all the faces in the input image.
|
void |
setFaceId(java.lang.String faceId)
Unique identifier that Amazon Rekognition assigns to the face.
|
void |
setImageId(java.lang.String imageId)
Unique identifier that Amazon Rekognition assigns to the input image.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Face |
withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
Face |
withConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a
different object such as a tree).
|
Face |
withExternalImageId(java.lang.String externalImageId)
Identifier that you assign to all the faces in the input image.
|
Face |
withFaceId(java.lang.String faceId)
Unique identifier that Amazon Rekognition assigns to the face.
|
Face |
withImageId(java.lang.String imageId)
Unique identifier that Amazon Rekognition assigns to the input image.
|
public java.lang.String getFaceId()
Unique identifier that Amazon Rekognition assigns to the face.
Constraints:
Pattern:
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Unique identifier that Amazon Rekognition assigns to the face.
public void setFaceId(java.lang.String faceId)
Unique identifier that Amazon Rekognition assigns to the face.
Constraints:
Pattern:
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
faceId
- Unique identifier that Amazon Rekognition assigns to the face.
public Face withFaceId(java.lang.String faceId)
Unique identifier that Amazon Rekognition assigns to the face.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern:
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
faceId
- Unique identifier that Amazon Rekognition assigns to the face.
public BoundingBox getBoundingBox()
Bounding box of the face.
Bounding box of the face.
public void setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
boundingBox
- Bounding box of the face.
public Face withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- Bounding box of the face.
public java.lang.String getImageId()
Unique identifier that Amazon Rekognition assigns to the input image.
Constraints:
Pattern:
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
Unique identifier that Amazon Rekognition assigns to the input image.
public void setImageId(java.lang.String imageId)
Unique identifier that Amazon Rekognition assigns to the input image.
Constraints:
Pattern:
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
imageId
- Unique identifier that Amazon Rekognition assigns to the input image.
public Face withImageId(java.lang.String imageId)
Unique identifier that Amazon Rekognition assigns to the input image.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern:
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
imageId
- Unique identifier that Amazon Rekognition assigns to the input image.
public java.lang.String getExternalImageId()
Identifier that you assign to all the faces in the input image.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-:]+
Identifier that you assign to all the faces in the input image.
public void setExternalImageId(java.lang.String externalImageId)
Identifier that you assign to all the faces in the input image.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-:]+
externalImageId
- Identifier that you assign to all the faces in the input image.
public Face withExternalImageId(java.lang.String externalImageId)
Identifier that you assign to all the faces in the input image.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-:]+
externalImageId
- Identifier that you assign to all the faces in the input image.
public java.lang.Float getConfidence()
Confidence level that the bounding box contains a face (and not a different object such as a tree).
Constraints:
Length: 0 - 100
Confidence level that the bounding box contains a face (and not a different object such as a tree).
public void setConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a different object such as a tree).
Constraints:
Length: 0 - 100
confidence
- Confidence level that the bounding box contains a face (and not a different object such as a tree).
public Face withConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a different object such as a tree).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
confidence
- Confidence level that the bounding box contains a face (and not a different object such as a tree).
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.