Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ObjectTrackingFrame

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Overview

Video frame level annotation for object detection and tracking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ObjectTrackingFrame

Returns a new instance of GoogleCloudDatalabelingV1beta1ObjectTrackingFrame.



3831
3832
3833
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3831

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bounding_polyGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1BoundingPoly

A bounding polygon in the image. Corresponds to the JSON property boundingPoly



3819
3820
3821
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3819

def bounding_poly
  @bounding_poly
end

#normalized_bounding_polyGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly

Normalized bounding polygon. Corresponds to the JSON property normalizedBoundingPoly



3824
3825
3826
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3824

def normalized_bounding_poly
  @normalized_bounding_poly
end

#time_offsetString

The time offset of this frame relative to the beginning of the video. Corresponds to the JSON property timeOffset

Returns:

  • (String)


3829
3830
3831
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3829

def time_offset
  @time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3836
3837
3838
3839
3840
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3836

def update!(**args)
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
  @normalized_bounding_poly = args[:normalized_bounding_poly] if args.key?(:normalized_bounding_poly)
  @time_offset = args[:time_offset] if args.key?(:time_offset)
end