Skip to main content

CLASS

ObjectDetectionResult

public final class ObjectDetectionResult : AwarenessResult

A read-only container for the results of a single, successful object detection frame.

Properties​

numDetections​

public let numDetections: UInt32

The number of detections in the frame

numClasses​

public let numClasses: UInt32

The number of classes in the frame

boundingBoxLocations​

public let boundingBoxLocations: UnsafeBufferPointer\<Float\>?

The bounding box locations in the frame. Array of 4 floats per detection. Indices within this array correspond to the indices in the trackingIds array.

probabilities​

public let probabilities: UnsafeBufferPointer\<Float\>?

The probabilities in the frame. Array of floats per detection. Indices within this array correspond to the indices in the trackingIds array.

trackingIds​

public let trackingIds: UnsafeBufferPointer\<UInt32\>?

The tracking ids in the frame. Array of uint32_t per detection. Indices within this array correspond to the indices in the boundingBoxLocations and probabilities arrays.

imageParams​

public let imageParams: ObjectDetectionImageParams

Information about the image parameters used for object detection on this frame