Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1DetectedLandmark

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

A generic detected landmark represented by name in string format and a 2D location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1DetectedLandmark

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1DetectedLandmark.



3849
3850
3851
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3849

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

Instance Attribute Details

#confidenceFloat

The confidence score of the detected landmark. Range [0, 1]. Corresponds to the JSON property confidence

Returns:

  • (Float)


3835
3836
3837
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3835

def confidence
  @confidence
end

#nameString

The name of this landmark, i.e. left_hand, right_shoulder. Corresponds to the JSON property name

Returns:

  • (String)


3840
3841
3842
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3840

def name
  @name
end

#pointGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1NormalizedVertex

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. Corresponds to the JSON property point



3847
3848
3849
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3847

def point
  @point
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3854
3855
3856
3857
3858
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3854

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @name = args[:name] if args.key?(:name)
  @point = args[:point] if args.key?(:point)
end