Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2DetectedLandmark

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1/classes.rb,
generated/google/apis/videointelligence_v1/representations.rb,
generated/google/apis/videointelligence_v1/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

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2DetectedLandmark

Returns a new instance of GoogleCloudVideointelligenceV1beta2DetectedLandmark.



1738
1739
1740
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1738

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)


1725
1726
1727
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1725

def confidence
  @confidence
end

#nameString

The name of this landmark, for example, left_hand, right_shoulder. Corresponds to the JSON property name

Returns:

  • (String)


1730
1731
1732
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1730

def name
  @name
end

#pointGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2NormalizedVertex

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



1736
1737
1738
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1736

def point
  @point
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1743
1744
1745
1746
1747
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1743

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