Class LabelImageRequest (1.8.1)

LabelImageRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for starting an image labeling task.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
image_classification_config google.cloud.datalabeling_v1beta1.types.ImageClassificationConfig
Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required. This field is a member of oneof_ request_config.
bounding_poly_config google.cloud.datalabeling_v1beta1.types.BoundingPolyConfig
Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required. This field is a member of oneof_ request_config.
polyline_config google.cloud.datalabeling_v1beta1.types.PolylineConfig
Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required. This field is a member of oneof_ request_config.
segmentation_config google.cloud.datalabeling_v1beta1.types.SegmentationConfig
Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required. This field is a member of oneof_ request_config.
parent str
Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
basic_config google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig
Required. Basic human annotation config.
feature google.cloud.datalabeling_v1beta1.types.LabelImageRequest.Feature
Required. The type of image labeling task.

Classes

Feature

Feature(value)

Image labeling task feature.

Values: FEATURE_UNSPECIFIED (0):

CLASSIFICATION (1):
    Label whole image with one or more of labels.
BOUNDING_BOX (2):
    Label image with bounding boxes for labels.
ORIENTED_BOUNDING_BOX (6):
    Label oriented bounding box. The box does not
    have to be parallel to horizontal line.
BOUNDING_POLY (3):
    Label images with bounding poly. A bounding
    poly is a plane figure that is bounded by a
    finite chain of straight line segments closing
    in a loop.
POLYLINE (4):
    Label images with polyline. Polyline is
    formed by connected line segments which are not
    in closed form.
SEGMENTATION (5):
    Label images with segmentation. Segmentation
    is different from bounding poly since it is more
    fine-grained, pixel level annotation.