# SpatialImgDetections

Similar to [ImgDetections](https://docs.luxonis.com/software/depthai-components/messages/img_detections.md), but this message
includes XYZ coordinates of the detected objects as well.

Both [YoloSpatialDetectionNetwork](https://docs.luxonis.com/software/depthai-components/nodes/yolo_spatial_detection_network.md)
and
[MobileNetSpatialDetectionNetwork](https://docs.luxonis.com/software/depthai-components/nodes/mobilenet_spatial_detection_network.md)
output this message.

## Examples of functionality

 * [RGB & MobilenetSSD with spatial data](https://docs.luxonis.com/software/depthai/examples/spatial_mobilenet.md)
 * [Mono & MobilenetSSD with spatial data](https://docs.luxonis.com/software/depthai/examples/spatial_mobilenet_mono.md)
 * [RGB & TinyYolo with spatial data](https://docs.luxonis.com/software/depthai/examples/spatial_tiny_yolo.md)

## Reference

### depthai.SpatialImgDetections(depthai.Buffer)

Kind: Class

SpatialImgDetections message. Carries detection results together with spatial
location data

#### __init__(self)

Kind: Method

#### getSequenceNum(self) -> int: int

Kind: Method

Retrieves sequence number

#### getTimestamp(self) -> datetime.timedelta: datetime.timedelta

Kind: Method

Retrieves timestamp related to dai::Clock::now()

#### getTimestampDevice(self) -> datetime.timedelta: datetime.timedelta

Kind: Method

Retrieves timestamp directly captured from device's monotonic clock, not
synchronized to host time. Used mostly for debugging

#### setSequenceNum(self, arg0: typing.SupportsInt) -> SpatialImgDetections: SpatialImgDetections

Kind: Method

Retrieves image sequence number

#### setTimestamp(self, arg0: datetime.timedelta) -> SpatialImgDetections: SpatialImgDetections

Kind: Method

Sets image timestamp related to dai::Clock::now()

#### setTimestampDevice(self, arg0: datetime.timedelta) -> SpatialImgDetections: SpatialImgDetections

Kind: Method

Sets image timestamp related to dai::Clock::now()

#### detections

Kind: Property

#### detections.setter(self, arg1: collections.abc.Sequence [ SpatialImgDetection ])

Kind: Method

### Need assistance?

Head over to [Discussion Forum](https://discuss.luxonis.com/) for technical support or any other questions you might have.
