Class: Google::Cloud::DataLabeling::V1beta1::LabelImageRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb

Overview

Request message for starting an image labeling task.

Defined Under Namespace

Modules: Feature

Instance Attribute Summary collapse

Instance Attribute Details

#basic_config::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig

Returns Required. Basic human annotation config.

Returns:



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 272

class LabelImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label whole image with one or more of labels.
    CLASSIFICATION = 1

    # Label image with bounding boxes for labels.
    BOUNDING_BOX = 2

    # Label oriented bounding box. The box does not have to be parallel to
    # horizontal line.
    ORIENTED_BOUNDING_BOX = 6

    # 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.
    BOUNDING_POLY = 3

    # Label images with polyline. Polyline is formed by connected line segments
    # which are not in closed form.
    POLYLINE = 4

    # Label images with segmentation. Segmentation is different from bounding
    # poly since it is more fine-grained, pixel level annotation.
    SEGMENTATION = 5
  end
end

#bounding_poly_config::Google::Cloud::DataLabeling::V1beta1::BoundingPolyConfig

Returns Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns:



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 272

class LabelImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label whole image with one or more of labels.
    CLASSIFICATION = 1

    # Label image with bounding boxes for labels.
    BOUNDING_BOX = 2

    # Label oriented bounding box. The box does not have to be parallel to
    # horizontal line.
    ORIENTED_BOUNDING_BOX = 6

    # 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.
    BOUNDING_POLY = 3

    # Label images with polyline. Polyline is formed by connected line segments
    # which are not in closed form.
    POLYLINE = 4

    # Label images with segmentation. Segmentation is different from bounding
    # poly since it is more fine-grained, pixel level annotation.
    SEGMENTATION = 5
  end
end

#feature::Google::Cloud::DataLabeling::V1beta1::LabelImageRequest::Feature

Returns Required. The type of image labeling task.

Returns:



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 272

class LabelImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label whole image with one or more of labels.
    CLASSIFICATION = 1

    # Label image with bounding boxes for labels.
    BOUNDING_BOX = 2

    # Label oriented bounding box. The box does not have to be parallel to
    # horizontal line.
    ORIENTED_BOUNDING_BOX = 6

    # 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.
    BOUNDING_POLY = 3

    # Label images with polyline. Polyline is formed by connected line segments
    # which are not in closed form.
    POLYLINE = 4

    # Label images with segmentation. Segmentation is different from bounding
    # poly since it is more fine-grained, pixel level annotation.
    SEGMENTATION = 5
  end
end

#image_classification_config::Google::Cloud::DataLabeling::V1beta1::ImageClassificationConfig

Returns Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns:



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 272

class LabelImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label whole image with one or more of labels.
    CLASSIFICATION = 1

    # Label image with bounding boxes for labels.
    BOUNDING_BOX = 2

    # Label oriented bounding box. The box does not have to be parallel to
    # horizontal line.
    ORIENTED_BOUNDING_BOX = 6

    # 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.
    BOUNDING_POLY = 3

    # Label images with polyline. Polyline is formed by connected line segments
    # which are not in closed form.
    POLYLINE = 4

    # Label images with segmentation. Segmentation is different from bounding
    # poly since it is more fine-grained, pixel level annotation.
    SEGMENTATION = 5
  end
end

#parent::String

Returns Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}.

Returns:

  • (::String)

    Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 272

class LabelImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label whole image with one or more of labels.
    CLASSIFICATION = 1

    # Label image with bounding boxes for labels.
    BOUNDING_BOX = 2

    # Label oriented bounding box. The box does not have to be parallel to
    # horizontal line.
    ORIENTED_BOUNDING_BOX = 6

    # 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.
    BOUNDING_POLY = 3

    # Label images with polyline. Polyline is formed by connected line segments
    # which are not in closed form.
    POLYLINE = 4

    # Label images with segmentation. Segmentation is different from bounding
    # poly since it is more fine-grained, pixel level annotation.
    SEGMENTATION = 5
  end
end

#polyline_config::Google::Cloud::DataLabeling::V1beta1::PolylineConfig

Returns Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns:



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 272

class LabelImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label whole image with one or more of labels.
    CLASSIFICATION = 1

    # Label image with bounding boxes for labels.
    BOUNDING_BOX = 2

    # Label oriented bounding box. The box does not have to be parallel to
    # horizontal line.
    ORIENTED_BOUNDING_BOX = 6

    # 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.
    BOUNDING_POLY = 3

    # Label images with polyline. Polyline is formed by connected line segments
    # which are not in closed form.
    POLYLINE = 4

    # Label images with segmentation. Segmentation is different from bounding
    # poly since it is more fine-grained, pixel level annotation.
    SEGMENTATION = 5
  end
end

#segmentation_config::Google::Cloud::DataLabeling::V1beta1::SegmentationConfig

Returns Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns:



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 272

class LabelImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Image labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label whole image with one or more of labels.
    CLASSIFICATION = 1

    # Label image with bounding boxes for labels.
    BOUNDING_BOX = 2

    # Label oriented bounding box. The box does not have to be parallel to
    # horizontal line.
    ORIENTED_BOUNDING_BOX = 6

    # 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.
    BOUNDING_POLY = 3

    # Label images with polyline. Polyline is formed by connected line segments
    # which are not in closed form.
    POLYLINE = 4

    # Label images with segmentation. Segmentation is different from bounding
    # poly since it is more fine-grained, pixel level annotation.
    SEGMENTATION = 5
  end
end