# 空间图像检测结果

与 [图像检测结果](https://docs.luxonis.com/software/depthai-components/messages/img_detections.md) 类似，但此消息还包含检测对象的 XYZ 坐标。

[Yolo空间检测网络](https://docs.luxonis.com/software/depthai-components/nodes/yolo_spatial_detection_network.md) 和
[MobileNet空间检测网络](https://docs.luxonis.com/software/depthai-components/nodes/mobilenet_spatial_detection_network.md) 均输出此消息。

## 功能示例

 * [RGB 与 MobileNetSSD 空间数据](https://docs.luxonis.com/software/depthai/examples/spatial_mobilenet.md)
 * [单目 与 MobileNetSSD 空间数据](https://docs.luxonis.com/software/depthai/examples/spatial_mobilenet_mono.md)
 * [RGB 与 TinyYolo 空间数据](https://docs.luxonis.com/software/depthai/examples/spatial_tiny_yolo.md)

## 参考

### 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

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
