Starts a labeling task for video. The type of video labeling task is configured by feature in the request.
HTTP request
POST https://datalabeling.googleapis.com/v1beta1/{parent=projects/*/datasets/*}/video:label
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id} Authorization requires the following Google IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "basicConfig": { object ( |
Fields | ||
---|---|---|
basicConfig |
Required. Basic human annotation config. |
|
feature |
Required. The type of video labeling task. |
|
Union field request_config . Required. Config for labeling tasks. The type of request config must match the selected feature. request_config can be only one of the following: |
||
videoClassificationConfig |
Configuration for video classification task. One of videoClassificationConfig, objectDetectionConfig, objectTrackingConfig and eventConfig is required. |
|
objectDetectionConfig |
Configuration for video object detection task. One of videoClassificationConfig, objectDetectionConfig, objectTrackingConfig and eventConfig is required. |
|
objectTrackingConfig |
Configuration for video object tracking task. One of videoClassificationConfig, objectDetectionConfig, objectTrackingConfig and eventConfig is required. |
|
eventConfig |
Configuration for video event task. One of videoClassificationConfig, objectDetectionConfig, objectTrackingConfig and eventConfig is required. |
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 Authentication Overview.
Feature
Video labeling task feature.
Enums | |
---|---|
FEATURE_UNSPECIFIED |
|
CLASSIFICATION |
Label whole video or video segment with one or more labels. |
OBJECT_DETECTION |
Label objects with bounding box on image frames extracted from the video. |
OBJECT_TRACKING |
Label and track objects in video. |
EVENT |
Label the range of video for the specified events. |