message about annotations about Vision AI stream resource.
JSON representation |
---|
{ "id": string, "displayName": string, "sourceStream": string, "type": enum ( |
Fields | |
---|---|
id |
ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application. |
displayName |
User-friendly name for the annotation. |
sourceStream |
The Vision AI stream resource name. |
type |
The actual type of Annotation. |
Union field
|
|
activeZone |
Annotation for type ACTIVE_ZONE |
crossingLine |
Annotation for type CROSSING_LINE |
NormalizedPolygon
Normalized Polygon.
JSON representation |
---|
{
"normalizedVertices": [
{
object ( |
Fields | |
---|---|
normalizedVertices[] |
The bounding polygon normalized vertices. Top left corner of the image will be [0, 0]. |
NormalizedVertex
A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
JSON representation |
---|
{ "x": number, "y": number } |
Fields | |
---|---|
x |
X coordinate. |
y |
Y coordinate. |
NormalizedPolyline
Normalized Pplyline, which represents a curve consisting of connected straight-line segments.
JSON representation |
---|
{
"normalizedVertices": [
{
object ( |
Fields | |
---|---|
normalizedVertices[] |
A sequence of vertices connected by straight lines. |