Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb
Overview
A polyline for the image annotation.
Instance Attribute Summary collapse
-
#annotation_spec ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec
Container of information related to one possible annotation that can be used in a labeling task.
-
#normalized_polyline ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1NormalizedPolyline
Normalized polyline.
-
#polyline ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Polyline
A line with multiple line segments.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation
constructor
A new instance of GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation
Returns a new instance of GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation.
2676 2677 2678 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2676 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_spec ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec
Container of information related to one possible annotation that can be used
in a labeling task. For example, an image classification task where images are
labeled as dog
or cat
must reference an AnnotationSpec for dog
and an
AnnotationSpec for cat
.
Corresponds to the JSON property annotationSpec
2664 2665 2666 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2664 def annotation_spec @annotation_spec end |
#normalized_polyline ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1NormalizedPolyline
Normalized polyline.
Corresponds to the JSON property normalizedPolyline
2669 2670 2671 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2669 def normalized_polyline @normalized_polyline end |
#polyline ⇒ Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Polyline
A line with multiple line segments.
Corresponds to the JSON property polyline
2674 2675 2676 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2674 def polyline @polyline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2681 2682 2683 2684 2685 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2681 def update!(**args) @annotation_spec = args[:annotation_spec] if args.key?(:annotation_spec) @normalized_polyline = args[:normalized_polyline] if args.key?(:normalized_polyline) @polyline = args[:polyline] if args.key?(:polyline) end |