本页目录

  • 参考

ImgAnnotations

ImgAnnotations 存储可以渲染在 ImgFrame 之上的叠加层。每个注释都可以描述矢量图元——点、线段、折线、边界框或文本标签——以及颜色和厚度等样式信息。该消息由能够为帧添加额外上下文(例如追踪器叠加层)的节点生成,并且也可以在主机上编排,然后将数据发送回设备。ImgAnnotationsImageManipScript 节点结合使用,直接在设备输出上绘制诊断信息或用户界面元素。在主机上,您可以遍历注释列表,使用 OpenCV 或其他可视化库进行渲染。

参考

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, Buffer::tsSystem, annotations, transformation)

需要帮助?

请前往 OAKChina 官网 获取技术支持或解答您的任何疑问。