# DetectionParserConfig

Send `DetectionParserConfig` to the
[DetectionParser](https://docs.luxonis.com/software-v3/depthai/depthai-components/nodes/detection_parser.md) node's `inputConfig`
input to update thresholds for subsequent detections without rebuilding the pipeline.

 * `confidenceThreshold`: Minimum detection confidence.
 * `iouThreshold`: Intersection-over-union threshold for YOLO non-maximum suppression. It is not used by MobileNet-SSD or
   end-to-end YOLO models.

Set both thresholds in each message. Model layout, labels, and decoding family remain configured on the node.

## Reference

### dai::DetectionParserConfig

Kind: class

Runtime thresholds for DetectionParser. Send to inputConfig to update subsequent detections. Model layout, labels and decoding
family remain configured on the node.

#### float confidenceThreshold

Kind: variable

Minimum detection confidence. Default matches DetectionParser's startup threshold.

#### float iouThreshold

Kind: variable

IoU threshold for YOLO non-maximum suppression. Not used by Mobilenet-SSD or end-to-end YOLO models.

#### DetectionParserConfig()

Kind: function

Construct a detection parser configuration message.

#### ~DetectionParserConfig()

Kind: function

#### void setConfidenceThreshold(float threshold)

Kind: function

Set the minimum detection confidence.

#### float getConfidenceThreshold()

Kind: function

Get the minimum detection confidence.

#### void setIouThreshold(float threshold)

Kind: function

Set the IoU threshold for non-maximum suppression.

#### float getIouThreshold()

Kind: function

Get the IoU threshold for non-maximum suppression.

#### void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)

Kind: function

#### DatatypeEnum getDatatype()

Kind: function

Get the datatype of this specific message.

return: DatatypeEnum

#### DEPTHAI_SERIALIZE(DetectionParserConfig, Buffer::sequenceNum, Buffer::ts, Buffer::tsDevice, Buffer::tsSystem, confidenceThreshold, iouThreshold)

Kind: function

### Need assistance?

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