Package com.castlabs.sdk.viisights
Class Hotspot
java.lang.Object
com.castlabs.sdk.viisights.Hotspot
Represents a hotspot in a video, indicating a specific event or object of interest
within a defined time range.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe category type of the hotspot (e.g., "person", "vehicle").final longThe end time of the hotspot in milliseconds.final StringA unique identifier for the hotspot.final StringA descriptive label for the hotspot.final StringThe name associated with the hotspot, which can be more specific than the label.final doubleA confidence score for the detected hotspot, typically ranging from 0.0 to 1.0.final longThe start time of the hotspot in milliseconds. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
label
A descriptive label for the hotspot. -
startMs
public final long startMsThe start time of the hotspot in milliseconds. -
endMs
public final long endMsThe end time of the hotspot in milliseconds. -
id
A unique identifier for the hotspot. -
categoryType
The category type of the hotspot (e.g., "person", "vehicle"). -
name
The name associated with the hotspot, which can be more specific than the label. -
score
public final double scoreA confidence score for the detected hotspot, typically ranging from 0.0 to 1.0.
-
-
Constructor Details
-
Hotspot
public Hotspot(String label, long startMs, long endMs, String id, String categoryType, String name, double score) Constructs a new Hotspot object.- Parameters:
label- A descriptive label for the hotspot.startMs- The start time of the hotspot in milliseconds.endMs- The end time of the hotspot in milliseconds.id- A unique identifier for the hotspot.categoryType- The category type of the hotspot.name- The name associated with the hotspot.score- A confidence score for the detected hotspot.
-