StreamAnnotation

关于 Vision AI 数据流资源注释的消息。

JSON 表示法
{
  "id": string,
  "displayName": string,
  "sourceStream": string,
  "type": enum (StreamAnnotationType),

  // Union field annotation_payload can be only one of the following:
  "activeZone": {
    object (NormalizedPolygon)
  },
  "crossingLine": {
    object (NormalizedPolyline)
  }
  // End of list of possible types for union field annotation_payload.
}
字段
id

string

注释的 ID。在特定上下文中使用时,必须是唯一的。例如,Vision AI 应用的一个输入流的所有注释。

displayName

string

注释的易记名称。

sourceStream

string

Vision AI 数据流资源名称。

type

enum (StreamAnnotationType)

注释的实际类型。

联合字段 annotation_payload

annotation_payload 只能是下列其中一项:

activeZone

object (NormalizedPolygon)

适用于类型 ACTIVE_ZONE 的注释

crossingLine

object (NormalizedPolyline)

类型为 CROSSING_LINE 的注释

NormalizedPolygon

规范化多边形。

JSON 表示法
{
  "normalizedVertices": [
    {
      object (NormalizedVertex)
    }
  ]
}
字段
normalizedVertices[]

object (NormalizedVertex)

外接多边形的规范化顶点。图片的左上角将为 [0, 0]。

NormalizedVertex

顶点表示图片中的 2D 点。注意:标准化顶点坐标相对于原始图片,范围介于 0 和 1 之间。

JSON 表示形式
{
  "x": number,
  "y": number
}
字段
x

number

x 坐标。

y

number

y 坐标。

NormalizedPolyline

归一化 Pplyline,表示由相连的直线段组成的曲线。

JSON 表示法
{
  "normalizedVertices": [
    {
      object (NormalizedVertex)
    }
  ]
}
字段
normalizedVertices[]

object (NormalizedVertex)

一系列由直线连接的顶点。