Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2FaceFrame

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

Overview

Deprecated. No effect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2FaceFrame

Returns a new instance of GoogleCloudVideointelligenceV1beta2FaceFrame.



1564
1565
1566
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1564

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

Instance Attribute Details

#normalized_bounding_boxesArray<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox>

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame. Corresponds to the JSON property normalizedBoundingBoxes



1556
1557
1558
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1556

def normalized_bounding_boxes
  @normalized_bounding_boxes
end

#time_offsetString

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. Corresponds to the JSON property timeOffset

Returns:

  • (String)


1562
1563
1564
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1562

def time_offset
  @time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1569
1570
1571
1572
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1569

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