struct ObjectsCategorization of the objects detected.
-
Count of objects detected by the device that the user may not recognize.
Declaration
Swift
let unfamiliar: Int32 -
List of objects recognized by the user that have been tagged with a label.
Declaration
Swift
let named: [String] -
Count of objects detected that the device was unable to classify.
Declaration
Swift
let unclassified: Int32 -
Count of objects recognized by the user that have no label.
Declaration
Swift
let familiar: Int32 -
List of objects detected.
Declaration
Swift
let objects: [Google.ObjectDetectionTrait.Object] -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)?