# AnnotateVideoResponse

- [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SCHEMA_REPRESENTATION)
- [VideoAnnotationResults](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#VideoAnnotationResults)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#VideoAnnotationResults.SCHEMA_REPRESENTATION)
- [LabelAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation.SCHEMA_REPRESENTATION)
- [Entity](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity.SCHEMA_REPRESENTATION)
- [LabelSegment](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelSegment)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelSegment.SCHEMA_REPRESENTATION)
- [LabelFrame](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelFrame)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelFrame.SCHEMA_REPRESENTATION)
- [FaceAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceAnnotation.SCHEMA_REPRESENTATION)
- [FaceSegment](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceSegment)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceSegment.SCHEMA_REPRESENTATION)
- [FaceFrame](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceFrame)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceFrame.SCHEMA_REPRESENTATION)
- [NormalizedBoundingBox](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox.SCHEMA_REPRESENTATION)
- [FaceDetectionAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceDetectionAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceDetectionAnnotation.SCHEMA_REPRESENTATION)
- [Track](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track.SCHEMA_REPRESENTATION)
- [TimestampedObject](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TimestampedObject)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TimestampedObject.SCHEMA_REPRESENTATION)
- [DetectedAttribute](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedAttribute)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedAttribute.SCHEMA_REPRESENTATION)
- [DetectedLandmark](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedLandmark)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedLandmark.SCHEMA_REPRESENTATION)
- [NormalizedVertex](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedVertex)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedVertex.SCHEMA_REPRESENTATION)
- [ExplicitContentAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentAnnotation.SCHEMA_REPRESENTATION)
- [ExplicitContentFrame](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentFrame)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentFrame.SCHEMA_REPRESENTATION)
- [SpeechTranscription](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechTranscription)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechTranscription.SCHEMA_REPRESENTATION)
- [SpeechRecognitionAlternative](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechRecognitionAlternative)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechRecognitionAlternative.SCHEMA_REPRESENTATION)
- [WordInfo](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#WordInfo)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#WordInfo.SCHEMA_REPRESENTATION)
- [TextAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextAnnotation.SCHEMA_REPRESENTATION)
- [TextSegment](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextSegment)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextSegment.SCHEMA_REPRESENTATION)
- [TextFrame](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextFrame)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextFrame.SCHEMA_REPRESENTATION)
- [NormalizedBoundingPoly](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingPoly)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingPoly.SCHEMA_REPRESENTATION)
- [ObjectTrackingAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingAnnotation.SCHEMA_REPRESENTATION)
- [ObjectTrackingFrame](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingFrame)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingFrame.SCHEMA_REPRESENTATION)
- [LogoRecognitionAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LogoRecognitionAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LogoRecognitionAnnotation.SCHEMA_REPRESENTATION)
- [PersonDetectionAnnotation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#PersonDetectionAnnotation)
  - [JSON representation](https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#PersonDetectionAnnotation.SCHEMA_REPRESENTATION)

Video annotation response. Included in the `response` field of the `Operation` returned by the `operations.get` call of the `google::longrunning::Operations` service.

| JSON representation ||
|---|---|
| ``` { "annotationResults": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#VideoAnnotationResults`) } ] } ``` |

| Fields ||
|---|---|
| `annotationResults[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#VideoAnnotationResults`)`` Annotation results for all videos specified in `AnnotateVideoRequest`. |

## VideoAnnotationResults

Annotation results for a single video.

| JSON representation ||
|---|---|
| ``` { "inputUri": string, "segment": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) }, "segmentLabelAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`) } ], "segmentPresenceLabelAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`) } ], "shotLabelAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`) } ], "shotPresenceLabelAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`) } ], "frameLabelAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`) } ], "faceAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceAnnotation`) } ], "faceDetectionAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceDetectionAnnotation`) } ], "shotAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) } ], "explicitAnnotation": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentAnnotation`) }, "speechTranscriptions": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechTranscription`) } ], "textAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextAnnotation`) } ], "objectAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingAnnotation`) } ], "logoRecognitionAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LogoRecognitionAnnotation`) } ], "personDetectionAnnotations": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#PersonDetectionAnnotation`) } ], "error": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/Shared.Types/Status`) } } ``` |

| Fields ||
|---|---|
| `inputUri` | `string` Video file location in [Cloud Storage](https://cloud.google.com/storage/). |
| `segment` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` Video segment on which the annotation is run. |
| `segmentLabelAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`)`` Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label. |
| `segmentPresenceLabelAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`)`` Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical `segmentLabelAnnotations`, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets `LabelDetectionConfig.model` to "builtin/latest" in the request. |
| `shotLabelAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`)`` Topical label annotations on shot level. There is exactly one element for each unique label. |
| `shotPresenceLabelAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`)`` Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical `shotLabelAnnotations`, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets `LabelDetectionConfig.model` to "builtin/latest" in the request. |
| `frameLabelAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelAnnotation`)`` Label annotations on frame level. There is exactly one element for each unique label. |
| `faceAnnotations[] (deprecated)` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceAnnotation`)`` > [!WARNING] > This item is deprecated! Deprecated. Please use `faceDetectionAnnotations` instead. |
| `faceDetectionAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceDetectionAnnotation`)`` Face detection annotations. |
| `shotAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` Shot annotations. Each shot is represented as a video segment. |
| `explicitAnnotation` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentAnnotation`)`` Explicit content annotation. |
| `speechTranscriptions[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechTranscription`)`` Speech transcription. |
| `textAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextAnnotation`)`` OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it. |
| `objectAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingAnnotation`)`` Annotations for list of objects detected and tracked in video. |
| `logoRecognitionAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LogoRecognitionAnnotation`)`` Annotations for list of logos detected, tracked and recognized in video. |
| `personDetectionAnnotations[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#PersonDetectionAnnotation`)`` Person detection annotations. |
| `error` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/Shared.Types/Status`)`` If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. |

## LabelAnnotation

Label annotation.

| JSON representation ||
|---|---|
| ``` { "entity": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`) }, "categoryEntities": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`) } ], "segments": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelSegment`) } ], "frames": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelFrame`) } ], "version": string } ``` |

| Fields ||
|---|---|
| `entity` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`)`` Detected entity. |
| `categoryEntities[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`)`` Common categories for the detected entity. For example, when the label is `Terrier`, the category is likely `dog`. And in some cases there might be more than one categories e.g., `Terrier` could also be a `pet`. |
| `segments[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelSegment`)`` All video segments where a label was detected. |
| `frames[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#LabelFrame`)`` All video frames where a label was detected. |
| `version` | `string` Feature version. |

## Entity

Detected entity from video analysis.

| JSON representation ||
|---|---|
| ``` { "entityId": string, "description": string, "languageCode": string } ``` |

| Fields ||
|---|---|
| `entityId` | `string` Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/). |
| `description` | `string` Textual description, e.g., `Fixed-gear bicycle`. |
| `languageCode` | `string` Language code for `description` in BCP-47 format. |

## LabelSegment

Video segment level annotation results for label detection.

| JSON representation ||
|---|---|
| ``` { "segment": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) }, "confidence": number } ``` |

| Fields ||
|---|---|
| `segment` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` Video segment where a label was detected. |
| `confidence` | `number` Confidence that the label is accurate. Range: \[0, 1\]. |

## LabelFrame

Video frame level annotation results for label detection.

| JSON representation ||
|---|---|
| ``` { "timeOffset": string, "confidence": number } ``` |

| Fields ||
|---|---|
| `timeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |
| `confidence` | `number` Confidence that the label is accurate. Range: \[0, 1\]. |

## FaceAnnotation

> [!WARNING]
> This item is deprecated!

Deprecated. No effect.

| JSON representation ||
|---|---|
| ``` { "thumbnail": string, "segments": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceSegment`) } ], "frames": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceFrame`) } ] } ``` |

| Fields ||
|---|---|
| `thumbnail` | `string (https://developers.google.com/discovery/v1/type-format format)` Thumbnail of a representative face view (in JPEG format). A base64-encoded string. |
| `segments[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceSegment`)`` All video segments where a face was detected. |
| `frames[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#FaceFrame`)`` All video frames where a face was detected. |

## FaceSegment

Video segment level annotation results for face detection.

| JSON representation ||
|---|---|
| ``` { "segment": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) } } ``` |

| Fields ||
|---|---|
| `segment` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` Video segment where a face was detected. |

## FaceFrame

> [!WARNING]
> This item is deprecated!

Deprecated. No effect.

| JSON representation ||
|---|---|
| ``` { "normalizedBoundingBoxes": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox`) } ], "timeOffset": string } ``` |

| Fields ||
|---|---|
| `normalizedBoundingBoxes[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox`)`` Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame. |
| `timeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |

## NormalizedBoundingBox

Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: \[0, 1\].

| JSON representation ||
|---|---|
| ``` { "left": number, "top": number, "right": number, "bottom": number } ``` |

| Fields ||
|---|---|
| `left` | `number` Left X coordinate. |
| `top` | `number` Top Y coordinate. |
| `right` | `number` Right X coordinate. |
| `bottom` | `number` Bottom Y coordinate. |

## FaceDetectionAnnotation

Face detection annotation.

| JSON representation ||
|---|---|
| ``` { "tracks": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track`) } ], "thumbnail": string, "version": string } ``` |

| Fields ||
|---|---|
| `tracks[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track`)`` The face tracks with attributes. |
| `thumbnail` | `string (https://developers.google.com/discovery/v1/type-format format)` The thumbnail of a person's face. A base64-encoded string. |
| `version` | `string` Feature version. |

## Track

A track of an object instance.

| JSON representation ||
|---|---|
| ``` { "segment": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) }, "timestampedObjects": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TimestampedObject`) } ], "attributes": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedAttribute`) } ], "confidence": number } ``` |

| Fields ||
|---|---|
| `segment` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` Video segment of a track. |
| `timestampedObjects[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TimestampedObject`)`` The object with timestamp and attributes per frame in the track. |
| `attributes[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedAttribute`)`` Optional. Attributes in the track level. |
| `confidence` | `number` Optional. The confidence score of the tracked object. |

## TimestampedObject

For tracking related features. An object at timeOffset with attributes, and located with normalizedBoundingBox.

| JSON representation ||
|---|---|
| ``` { "normalizedBoundingBox": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox`) }, "timeOffset": string, "attributes": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedAttribute`) } ], "landmarks": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedLandmark`) } ] } ``` |

| Fields ||
|---|---|
| `normalizedBoundingBox` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox`)`` Normalized Bounding box in a frame, where the object is located. |
| `timeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Time-offset, relative to the beginning of the video, corresponding to the video frame for this object. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |
| `attributes[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedAttribute`)`` Optional. The attributes of the object in the bounding box. |
| `landmarks[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#DetectedLandmark`)`` Optional. The detected landmarks. |

## DetectedAttribute

A generic detected attribute represented by name in string format.

| JSON representation ||
|---|---|
| ``` { "name": string, "confidence": number, "value": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the attribute, for example, glasses, dark_glasses, mouth_open. A full list of supported type names will be provided in the document. |
| `confidence` | `number` Detected attribute confidence. Range \[0, 1\]. |
| `value` | `string` Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. |

## DetectedLandmark

A generic detected landmark represented by name in string format and a 2D location.

| JSON representation ||
|---|---|
| ``` { "name": string, "point": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedVertex`) }, "confidence": number } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of this landmark, for example, left_hand, right_shoulder. |
| `point` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedVertex`)`` The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1. |
| `confidence` | `number` The confidence score of the detected landmark. Range \[0, 1\]. |

## 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` | `number` X coordinate. |
| `y` | `number` Y coordinate. |

## ExplicitContentAnnotation

Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame.

| JSON representation ||
|---|---|
| ``` { "frames": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentFrame`) } ], "version": string } ``` |

| Fields ||
|---|---|
| `frames[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ExplicitContentFrame`)`` All video frames where explicit content was detected. |
| `version` | `string` Feature version. |

## ExplicitContentFrame

Video frame level annotation results for explicit content.

| JSON representation ||
|---|---|
| ``` { "timeOffset": string, "pornographyLikelihood": enum (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/Likelihood`) } ``` |

| Fields ||
|---|---|
| `timeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |
| `pornographyLikelihood` | ``enum (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/Likelihood`)`` Likelihood of the pornography content.. |

## SpeechTranscription

A speech recognition result corresponding to a portion of the audio.

| JSON representation ||
|---|---|
| ``` { "alternatives": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechRecognitionAlternative`) } ], "languageCode": string } ``` |

| Fields ||
|---|---|
| `alternatives[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#SpeechRecognitionAlternative`)`` May contain one or more recognition hypotheses (up to the maximum specified in `maxAlternatives`). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer. |
| `languageCode` | `string` Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio. |

## SpeechRecognitionAlternative

Alternative hypotheses (a.k.a. n-best list).

| JSON representation ||
|---|---|
| ``` { "transcript": string, "confidence": number, "words": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#WordInfo`) } ] } ``` |

| Fields ||
|---|---|
| `transcript` | `string` Transcript text representing the words that the user spoke. |
| `confidence` | `number` Output only. The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set. |
| `words[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#WordInfo`)`` Output only. A list of word-specific information for each recognized word. Note: When `enableSpeakerDiarization` is set to true, you will see all the words from the beginning of the audio. |

## WordInfo

Word-specific information for recognized words. Word information is only included in the response when certain request parameters are set, such as `enable_word_time_offsets`.

| JSON representation ||
|---|---|
| ``` { "startTime": string, "endTime": string, "word": string, "confidence": number, "speakerTag": integer } ``` |

| Fields ||
|---|---|
| `startTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |
| `endTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |
| `word` | `string` The word corresponding to this set of information. |
| `confidence` | `number` Output only. The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set. |
| `speakerTag` | `integer` Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value ranges from 1 up to diarizationSpeakerCount, and is only set if speaker diarization is enabled. |

## TextAnnotation

Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection.

| JSON representation ||
|---|---|
| ``` { "text": string, "segments": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextSegment`) } ], "version": string } ``` |

| Fields ||
|---|---|
| `text` | `string` The detected text. |
| `segments[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextSegment`)`` All video segments where OCR detected text appears. |
| `version` | `string` Feature version. |

## TextSegment

Video segment level annotation results for text detection.

| JSON representation ||
|---|---|
| ``` { "segment": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) }, "confidence": number, "frames": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextFrame`) } ] } ``` |

| Fields ||
|---|---|
| `segment` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` Video segment where a text snippet was detected. |
| `confidence` | `number` Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears. |
| `frames[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#TextFrame`)`` Information related to the frames where OCR detected text appears. |

## TextFrame

Video frame level annotation results for text annotation (OCR). Contains information regarding timestamp and bounding box locations for the frames containing detected OCR text snippets.

| JSON representation ||
|---|---|
| ``` { "rotatedBoundingBox": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingPoly`) }, "timeOffset": string } ``` |

| Fields ||
|---|---|
| `rotatedBoundingBox` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingPoly`)`` Bounding polygon of the detected text for this frame. |
| `timeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Timestamp of this frame. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |

## NormalizedBoundingPoly

Normalized bounding polygon for text (that might not be aligned with axis). Contains list of the corner points in clockwise order starting from top-left corner. For example, for a rectangular bounding box: When the text is horizontal it might look like: 0---1 \| \| 3---2

When it's clockwise rotated 180 degrees around the top-left corner it becomes: 2---3 \| \| 1---0

and the vertex order will still be (0, 1, 2, 3). Note that values can be less than 0, or greater than 1 due to trignometric calculations for location of the box.

| JSON representation ||
|---|---|
| ``` { "vertices": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedVertex`) } ] } ``` |

| Fields ||
|---|---|
| `vertices[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedVertex`)`` Normalized vertices of the bounding polygon. |

## ObjectTrackingAnnotation

Annotations corresponding to one tracked object.

| JSON representation ||
|---|---|
| ``` { "entity": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`) }, "confidence": number, "frames": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingFrame`) } ], "version": string, // Union field `track_info` can be only one of the following: "segment": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) }, "trackId": string // End of list of possible types for union field `track_info`. } ``` |

| Fields ||
|---|---|---|
| `entity` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`)`` Entity to specify the object category that this track is labeled as. |
| `confidence` | `number` Object category's labeling confidence of this track. |
| `frames[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#ObjectTrackingFrame`)`` Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames. |
| `version` | `string` Feature version. |
| Union field `track_info`. Different representation of tracking info in non-streaming batch and streaming modes. `track_info` can be only one of the following: |||
| `segment` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. |
| `trackId` | `string (https://developers.google.com/discovery/v1/type-format format)` Streaming mode ONLY. In streaming mode, we do not know the end time of a tracked object before it is completed. Hence, there is no VideoSegment info returned. Instead, we provide a unique identifiable integer trackId so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same trackId over time. |

## ObjectTrackingFrame

Video frame level annotations for object detection and tracking. This field stores per frame location, time offset, and confidence.

| JSON representation ||
|---|---|
| ``` { "normalizedBoundingBox": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox`) }, "timeOffset": string } ``` |

| Fields ||
|---|---|
| `normalizedBoundingBox` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#NormalizedBoundingBox`)`` The normalized bounding box location of this object track for the frame. |
| `timeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` The timestamp of the frame in microseconds. A duration in seconds with up to nine fractional digits, terminated by '`s`'. Example: `"3.5s"`. |

## LogoRecognitionAnnotation

Annotation corresponding to one detected, tracked and recognized logo class.

| JSON representation ||
|---|---|
| ``` { "entity": { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`) }, "tracks": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track`) } ], "segments": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`) } ] } ``` |

| Fields ||
|---|---|
| `entity` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Entity`)`` Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. |
| `tracks[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track`)`` All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. |
| `segments[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/videos/annotate#VideoSegment`)`` All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. |

## PersonDetectionAnnotation

Person detection annotation per video.

| JSON representation ||
|---|---|
| ``` { "tracks": [ { object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track`) } ], "version": string } ``` |

| Fields ||
|---|---|
| `tracks[]` | ``object (`https://docs.cloud.google.com/video-intelligence/docs/reference/rest/v1/AnnotateVideoResponse#Track`)`` The detected tracks of a person. |
| `version` | `string` Feature version. |