public class LabelDetection extends Object implements Serializable
Information about a label detected in a video analysis request and the time the label was detected in the video.
Constructor and Description |
---|
LabelDetection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Label |
getLabel()
Details about the detected label.
|
Long |
getTimestamp()
Time, in milliseconds from the start of the video, that the label was
detected.
|
int |
hashCode() |
void |
setLabel(Label label)
Details about the detected label.
|
void |
setTimestamp(Long timestamp)
Time, in milliseconds from the start of the video, that the label was
detected.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LabelDetection |
withLabel(Label label)
Details about the detected label.
|
LabelDetection |
withTimestamp(Long timestamp)
Time, in milliseconds from the start of the video, that the label was
detected.
|
public Long getTimestamp()
Time, in milliseconds from the start of the video, that the label was detected.
Time, in milliseconds from the start of the video, that the label was detected.
public void setTimestamp(Long timestamp)
Time, in milliseconds from the start of the video, that the label was detected.
timestamp
- Time, in milliseconds from the start of the video, that the label was detected.
public LabelDetection withTimestamp(Long timestamp)
Time, in milliseconds from the start of the video, that the label 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 label was detected.
public Label getLabel()
Details about the detected label.
Details about the detected label.
public void setLabel(Label label)
Details about the detected label.
label
- Details about the detected label.
public LabelDetection withLabel(Label label)
Details about the detected label.
Returns a reference to this object so that method calls can be chained together.
label
- Details about the detected label.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.