ObjectDetectionTrait.Objects

class ObjectDetectionTrait.Objects : ClusterStruct


Categorization of the objects detected.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

Objects(
    unfamiliar: Int,
    named: List<String>,
    unclassified: Int,
    familiar: Int,
    objects: List<ObjectDetectionTrait.Object>
)

Creates the Objects 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

Int

Count of objects recognized by the user that have no label.

List<String>

List of objects recognized by the user that have been tagged with a label.

List<ObjectDetectionTrait.Object>

List of objects detected.

Int

Count of objects detected that the device was unable to classify.

Int

Count of objects detected by the device that the user may not recognize.

Public constructors

Objects

Objects(
    unfamiliar: Int = 0,
    named: List<String> = emptyList(),
    unclassified: Int = 0,
    familiar: Int = 0,
    objects: List<ObjectDetectionTrait.Object> = emptyList()
)

Creates the Objects 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

familiar

val familiarInt

Count of objects recognized by the user that have no label.

named

val namedList<String>

List of objects recognized by the user that have been tagged with a label.

objects

val objectsList<ObjectDetectionTrait.Object>

List of objects detected.

unclassified

val unclassifiedInt

Count of objects detected that the device was unable to classify.

unfamiliar

val unfamiliarInt

Count of objects detected by the device that the user may not recognize.