Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1DetectedLandmark

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

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1DetectedLandmark.



3553
3554
3555
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3553

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)


3540
3541
3542
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3540

def confidence
  @confidence
end

#nameString

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

Returns:

  • (String)


3545
3546
3547
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3545

def name
  @name
end

#pointGoogle::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1NormalizedVertex

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



3551
3552
3553
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3551

def point
  @point
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3558
3559
3560
3561
3562
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 3558

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