ObjectDetectionTrait.Object

class ObjectDetectionTrait.Object : ClusterStruct


Information about a specific object that has been detected.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

Object(
    type: ObjectDetectionTrait.ObjectType,
    startTimestampMillis: Long,
    endTimestampMillis: Long,
    name: String,
    imageUrl: String
)

Creates the Object class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

Long

The Unix Epoch timestamp in milliseconds at which the object was last detected.

String

The URL of the object's image.

String

Label of the object.

Long

The Unix Epoch timestamp in milliseconds at which the object was first detected.

ObjectDetectionTrait.ObjectType

Type of the object.

Public constructors

Object

Object(
    type: ObjectDetectionTrait.ObjectType = ObjectType.Unknown,
    startTimestampMillis: Long = 0,
    endTimestampMillis: Long = 0,
    name: String = "",
    imageUrl: String = ""
)

Creates the Object class.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

endTimestampMillis

val endTimestampMillisLong

The Unix Epoch timestamp in milliseconds at which the object was last detected.

imageUrl

val imageUrlString

The URL of the object's image.

name

val nameString

Label of the object.

startTimestampMillis

val startTimestampMillisLong

The Unix Epoch timestamp in milliseconds at which the object was first detected.

type

val typeObjectDetectionTrait.ObjectType

Type of the object.