StreamWithAnnotation

アプリケーション固有のアノテーションを含む Vision AI ストリームを記述するメッセージ。このメッセージ内のすべての StreamAnnotation オブジェクトに一意の ID が必要です。

JSON 表現
{
  "stream": string,
  "applicationAnnotations": [
    {
      object (StreamAnnotation)
    }
  ],
  "nodeAnnotations": [
    {
      object (NodeAnnotation)
    }
  ]
}
フィールド
stream

string

Vision AI Stream リソース名。

applicationAnnotations[]

object (StreamAnnotation)

アプリケーション全体に適用されるアノテーション。

nodeAnnotations[]

object (NodeAnnotation)

アプリケーションの特定のノードに適用されるアノテーション。アプリケーションとノードの両方に同じタイプのアノテーションが適用されている場合、グローバル アプリケーションのアノテーションに加えて、ノード アノテーションが追加されます。たとえば、アプリ全体に 1 つのアクティブ ゾーン アノテーションがあり、占有状況分析プロセッサに 1 つのアクティブ ゾーン アノテーションがある場合、占有状況分析プロセッサには 2 つのアクティブ ゾーンが定義されます。

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)

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

NodeAnnotation

アプリケーション ノードに固有のアノテーションを説明するメッセージ。

JSON 表現
{
  "node": string,
  "annotations": [
    {
      object (StreamAnnotation)
    }
  ]
}
フィールド
node

string

アプリケーション グラフのノード名。

annotations[]

object (StreamAnnotation)

ノード固有のストリームのアノテーション。