public class PersonDetection
extends java.lang.Object
implements java.io.Serializable
Details and path tracking information for a single time a person's path is
tracked in a video. Amazon Rekognition operations that track people's paths
return an array of PersonDetection
objects with elements for
each time a person's path is tracked in a video.
For more information, see GetPersonTracking in the Amazon Rekognition Developer Guide.
Constructor and Description |
---|
PersonDetection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
PersonDetail |
getPerson()
Details about a person whose path was tracked in a video.
|
java.lang.Long |
getTimestamp()
The time, in milliseconds from the start of the video, that the person's
path was tracked.
|
int |
hashCode() |
void |
setPerson(PersonDetail person)
Details about a person whose path was tracked in a video.
|
void |
setTimestamp(java.lang.Long timestamp)
The time, in milliseconds from the start of the video, that the person's
path was tracked.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PersonDetection |
withPerson(PersonDetail person)
Details about a person whose path was tracked in a video.
|
PersonDetection |
withTimestamp(java.lang.Long timestamp)
The time, in milliseconds from the start of the video, that the person's
path was tracked.
|
public java.lang.Long getTimestamp()
The time, in milliseconds from the start of the video, that the person's path was tracked.
The time, in milliseconds from the start of the video, that the person's path was tracked.
public void setTimestamp(java.lang.Long timestamp)
The time, in milliseconds from the start of the video, that the person's path was tracked.
timestamp
- The time, in milliseconds from the start of the video, that the person's path was tracked.
public PersonDetection withTimestamp(java.lang.Long timestamp)
The time, in milliseconds from the start of the video, that the person's path was tracked.
Returns a reference to this object so that method calls can be chained together.
timestamp
- The time, in milliseconds from the start of the video, that the person's path was tracked.
public PersonDetail getPerson()
Details about a person whose path was tracked in a video.
Details about a person whose path was tracked in a video.
public void setPerson(PersonDetail person)
Details about a person whose path was tracked in a video.
person
- Details about a person whose path was tracked in a video.
public PersonDetection withPerson(PersonDetail person)
Details about a person whose path was tracked in a video.
Returns a reference to this object so that method calls can be chained together.
person
- Details about a person whose path was tracked in a video.
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.