# AprilTags

[AprilTag](https://docs.luxonis.com/software-v3/depthai/depthai-components/nodes/april_tag.md) 节点产生的消息，包含 AprilTags 标记数据，包括检测到的
tag ID、tag 的角点、 解码质量（decisionMargin）以及纠正的错误比特数（hamming）。

## 参考

### dai::AprilTags

Kind: class

AprilTags message.

#### std::vector< AprilTag > aprilTags

Kind: variable

#### int64_t sequenceNum

Kind: variable

#### Timestamp ts

Kind: variable

#### Timestamp tsDevice

Kind: variable

#### std::optional< Timestamp > tsSystem

Kind: variable

#### std::optional< ImgTransformation > transformation

Kind: variable

#### AprilTags()

Kind: function

Construct AprilTags message.

#### ~AprilTags()

Kind: function

#### AprilTags transformTo(const ImgTransformation & target)

Kind: function

Returns a new AprilTags message with the tags transformed into the target image transformation. If the target transformation has a
different coordinate system source (eg. different camera socket) then the remapping will be inaccurate due to the lack of depth
information. parameters: target: Target image transformation.

#### 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(AprilTags, sequenceNum, ts, tsDevice, tsSystem, transformation, aprilTags)

Kind: function

### 需要帮助？

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