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 アプリケーションの 1 つの入力ストリームに対するすべてのアノテーションなどです。

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

正規化されたポリライン。接続された直線セグメントで構成される曲線を表します。

JSON 表現
{
  "normalizedVertices": [
    {
      object (NormalizedVertex)
    }
  ]
}
フィールド
normalizedVertices[]

object (NormalizedVertex)

直線で接続された一連の頂点。