public class FaceDetection extends Object implements 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(Object obj) |
FaceDetail |
getFace()
The face properties for the detected face.
|
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(Long timestamp)
Time, in milliseconds from the start of the video, that the face was
detected.
|
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(Long timestamp)
Time, in milliseconds from the start of the video, that the face was
detected.
|
public 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(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(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.