# 图像检测结果

[YoloDetectionNetwork](https://docs.luxonis.com/software/depthai-components/nodes/yolo_detection_network.md) 和
[MobileNetDetectionNetwork](https://docs.luxonis.com/software/depthai-components/nodes/mobilenet_detection_network.md)
都会输出此消息。该消息包含一个 detections 列表，每个检测结果包含 label（标签）、confidence（置信度）以及边界框信息（xmin、ymin、xmax、ymax）。

## 功能示例

 * [RGB & MobilenetSSD](https://docs.luxonis.com/software/depthai/examples/rgb_mobilenet.md)
 * [Mono & MobilenetSSD](https://docs.luxonis.com/software/depthai/examples/mono_depth_mobilenetssd.md)
 * [RGB & Tiny YOLO](https://docs.luxonis.com/software/depthai/examples/tiny_yolo.md)
 * [RGB & YOLOv8 Nano](https://docs.luxonis.com/software/depthai/examples/yolov8_nano.md)

## 参考

### depthai.ImgDetections(depthai.Buffer)

Kind: Class

ImgDetections message. Carries normalized detection results

#### __init__(self)

Kind: Method

Construct ImgDetections message

#### 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) -> ImgDetections: ImgDetections

Kind: Method

Retrieves image sequence number

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

Kind: Method

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

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

Kind: Method

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

#### detections

Kind: Property

Detections

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

Kind: Method

### 需要帮助？

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