public class FaceDetection
extends java.lang.Object
implements java.io.Serializable
Information about a face detected in a video analysis request and the time the face was detected in the video.
Constructor and Description |
---|
FaceDetection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
FaceDetail |
getFace()
The face properties for the detected face.
|
java.lang.Long |
getTimestamp()
Time, in milliseconds from the start of the video, that the face was
detected.
|
int |
hashCode() |
void |
setFace(FaceDetail face)
The face properties for the detected face.
|
void |
setTimestamp(java.lang.Long timestamp)
Time, in milliseconds from the start of the video, that the face was
detected.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FaceDetection |
withFace(FaceDetail face)
The face properties for the detected face.
|
FaceDetection |
withTimestamp(java.lang.Long timestamp)
Time, in milliseconds from the start of the video, that the face was
detected.
|
public java.lang.Long getTimestamp()
Time, in milliseconds from the start of the video, that the face was detected.
Time, in milliseconds from the start of the video, that the face was detected.
public void setTimestamp(java.lang.Long timestamp)
Time, in milliseconds from the start of the video, that the face was detected.
timestamp
- Time, in milliseconds from the start of the video, that the face was detected.
public FaceDetection withTimestamp(java.lang.Long timestamp)
Time, in milliseconds from the start of the video, that the face was detected.
Returns a reference to this object so that method calls can be chained together.
timestamp
- Time, in milliseconds from the start of the video, that the face was detected.
public FaceDetail getFace()
The face properties for the detected face.
The face properties for the detected face.
public void setFace(FaceDetail face)
The face properties for the detected face.
face
- The face properties for the detected face.
public FaceDetection withFace(FaceDetail face)
The face properties for the detected face.
Returns a reference to this object so that method calls can be chained together.
face
- The face properties for the detected face.
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.