# ImgDetections

Both [YoloDetectionNetwork](https://docs.luxonis.com/software/depthai-components/nodes/yolo_detection_network.md) and
[MobileNetDetectionNetwork](https://docs.luxonis.com/software/depthai-components/nodes/mobilenet_detection_network.md) output this
message. This message contains a list of detections, which contains label, confidence, and the bounding box information (xmin,
ymin, xmax, ymax).

## Examples of functionality

 * [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)

## Reference

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

### Need assistance?

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