Performs asynchronous video annotation. Progress and results can be retrieved through the google.longrunning.Operations
interface. Operation.metadata
contains AnnotateVideoProgress
(progress). Operation.response
contains AnnotateVideoResponse
(results).
HTTP request
POST https://videointelligence.googleapis.com/v1beta1/videos:annotate
The URL uses Google API HTTP annotation syntax.
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "inputUri": string, "inputContent": string, "features": [ enum( |
Fields | |
---|---|
inputUri |
Input video location. Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format: |
inputContent |
The video data bytes. Encoding: base64. If unset, the input video(s) should be specified via |
features[] |
Requested video annotation features. |
videoContext |
Additional video context and/or feature-specific parameters. |
outputUri |
Optional location where the output (in JSON format) should be stored. Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format: |
locationId |
Optional cloud region where annotation should take place. Supported cloud regions: |
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Auth Guide.