- Resource: AnnotatedDataset
- LabelStats
- AnnotatedDatasetMetadata
- PolylineConfig
- SegmentationConfig
- VideoClassificationConfig
- AnnotationSpecSetConfig
- ObjectDetectionConfig
- ObjectTrackingConfig
- EventConfig
- TextEntityExtractionConfig
- Methods
Resource: AnnotatedDataset
AnnotatedDataset is a set holding annotations for data in a Dataset. Each labeling task will generate an AnnotatedDataset under the Dataset that the task is requested for.
JSON representation | |
---|---|
{ "name": string, "displayName": string, "description": string, "annotationSource": enum ( |
Fields | |
---|---|
name |
Output only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id} |
displayName |
Output only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 64 characters. |
description |
Output only. The description of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 10000 characters. |
annotationSource |
Output only. Source of the annotation. |
annotationType |
Output only. Type of the annotation. It is specified when starting labeling task. |
exampleCount |
Output only. Number of examples in the annotated dataset. |
completedExampleCount |
Output only. Number of examples that have annotation in the annotated dataset. |
labelStats |
Output only. Per label statistics. |
createTime |
Output only. Time the AnnotatedDataset was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: |
metadata |
Output only. Additional information about AnnotatedDataset. |
blockingResources[] |
Output only. The names of any related resources that are blocking changes to the annotated dataset. |
LabelStats
Statistics about annotation specs.
JSON representation | |
---|---|
{ "exampleCount": { string: string, ... } } |
Fields | |
---|---|
exampleCount |
Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations. |
AnnotatedDatasetMetadata
Metadata on AnnotatedDataset.
JSON representation | |
---|---|
{ "humanAnnotationConfig": { object ( |
Fields | ||
---|---|---|
humanAnnotationConfig |
HumanAnnotationConfig used when requesting the human labeling task for this AnnotatedDataset. |
|
Union field annotation_request_config . Specific request configuration used when requesting the labeling task. annotation_request_config can be only one of the following: |
||
imageClassificationConfig |
Configuration for image classification task. |
|
boundingPolyConfig |
Configuration for image bounding box and bounding poly task. |
|
polylineConfig |
Configuration for image polyline task. |
|
segmentationConfig |
Configuration for image segmentation task. |
|
videoClassificationConfig |
Configuration for video classification task. |
|
objectDetectionConfig |
Configuration for video object detection task. |
|
objectTrackingConfig |
Configuration for video object tracking task. |
|
eventConfig |
Configuration for video event labeling task. |
|
textClassificationConfig |
Configuration for text classification task. |
|
textEntityExtractionConfig |
Configuration for text entity extraction task. |
PolylineConfig
Config for image polyline human labeling task.
JSON representation | |
---|---|
{ "annotationSpecSet": string, "instructionMessage": string } |
Fields | |
---|---|
annotationSpecSet |
Required. Annotation spec set resource name. |
instructionMessage |
Optional. Instruction message showed on contributors UI. |
SegmentationConfig
Config for image segmentation
JSON representation | |
---|---|
{ "annotationSpecSet": string, "instructionMessage": string } |
Fields | |
---|---|
annotationSpecSet |
Required. Annotation spec set resource name. format: projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} |
instructionMessage |
Instruction message showed on labelers UI. |
VideoClassificationConfig
Config for video classification human labeling task. Currently two types of video classification are supported: 1. Assign labels on the entire video. 2. Split the video into multiple video clips based on camera shot, and assign labels on each video clip.
JSON representation | |
---|---|
{
"annotationSpecSetConfigs": [
{
object ( |
Fields | |
---|---|
annotationSpecSetConfigs[] |
Required. The list of annotation spec set configs. Since watching a video clip takes much longer time than an image, we support label with multiple AnnotationSpecSet at the same time. Labels in each AnnotationSpecSet will be shown in a group to contributors. Contributors can select one or more (depending on whether to allow multi label) from each group. |
applyShotDetection |
Optional. Option to apply shot detection on the video. |
AnnotationSpecSetConfig
Annotation spec set with the setting of allowing multi labels or not.
JSON representation | |
---|---|
{ "annotationSpecSet": string, "allowMultiLabel": boolean } |
Fields | |
---|---|
annotationSpecSet |
Required. Annotation spec set resource name. |
allowMultiLabel |
Optional. If allowMultiLabel is true, contributors are able to choose multiple labels from one annotation spec set. |
ObjectDetectionConfig
Config for video object detection human labeling task. Object detection will be conducted on the images extracted from the video, and those objects will be labeled with bounding boxes. User need to specify the number of images to be extracted per second as the extraction frame rate.
JSON representation | |
---|---|
{ "annotationSpecSet": string, "extractionFrameRate": number } |
Fields | |
---|---|
annotationSpecSet |
Required. Annotation spec set resource name. |
extractionFrameRate |
Required. Number of frames per second to be extracted from the video. |
ObjectTrackingConfig
Config for video object tracking human labeling task.
JSON representation | |
---|---|
{ "annotationSpecSet": string } |
Fields | |
---|---|
annotationSpecSet |
Required. Annotation spec set resource name. |
EventConfig
Config for video event human labeling task.
JSON representation | |
---|---|
{ "annotationSpecSets": [ string ] } |
Fields | |
---|---|
annotationSpecSets[] |
Required. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time. |
TextEntityExtractionConfig
Config for text entity extraction human labeling task.
JSON representation | |
---|---|
{ "annotationSpecSet": string } |
Fields | |
---|---|
annotationSpecSet |
Required. Annotation spec set resource name. |
Methods |
|
---|---|
|
Deletes an annotated dataset by resource name. |
|
Gets an annotated dataset by resource name. |
|
Lists annotated datasets for a dataset. |