此页面由 AI 自动翻译。查看英文原版

本页目录

  • Reference

ImgAnnotations

ImgAnnotations 存储可以渲染在 ImgFrame 之上的叠加层。每个注解都可以描述矢量图元——点、线段、折线、边界框或文本标签——以及颜色和粗细等样式信息。该消息由丰富帧的节点(例如,跟踪器叠加层)生成,也可以在发送数据回设备之前在主机上组合。ImgAnnotationsImageManipScript 节点一起使用,直接在设备输出上绘制诊断或用户界面元素。在主机上,您可以遍历注解列表,使用 OpenCV 或其他可视化库进行渲染。

Reference

class

dai::ImgAnnotations

#include ImgAnnotations.hpp
variable
std::vector< ImgAnnotation > annotations
variable
std::optional< ImgTransformation > transformation
function
ImgAnnotations()
Construct ImgAnnotations message.
inline explicit function
ImgAnnotations(std::vector< ImgAnnotation > annotations)
function
~ImgAnnotations()
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)
inline function
DatatypeEnum getDatatype()
function
DEPTHAI_SERIALIZE(ImgAnnotations, Buffer::sequenceNum, Buffer::ts, Buffer::tsDevice, annotations, transformation)

需要帮助?

请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。