---
title: DetectedObject
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/detectedobject
---

# DetectedObject

An item in a detection result.

## Declaration

```swift
struct DetectedObject<Label> where Label : Comparable, Label : Hashable
```

## Topics

### Creating a detected object

- [init(boundingBox:label:probability:)](createmlcomponents/detectedobject/init(boundingbox:label:probability:).md)

### Getting the properties

- [boundingBox](createmlcomponents/detectedobject/boundingbox.md)
- [confidence](createmlcomponents/detectedobject/confidence.md)
- [label](createmlcomponents/detectedobject/label.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Object detection components

- [ObjectDetectionAnnotation](createmlcomponents/objectdetectionannotation.md)
- [ObjectDetectionMetrics](createmlcomponents/objectdetectionmetrics.md)
