Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedLandmark
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedLandmark
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1p3beta1/classes.rb,
generated/google/apis/videointelligence_v1p3beta1/representations.rb,
generated/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
-
#confidence ⇒ Float
The confidence score of the detected landmark.
-
#name ⇒ String
The name of this landmark, i.e.
-
#point ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1NormalizedVertex
A vertex represents a 2D point in the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1DetectedLandmark
constructor
A new instance of GoogleCloudVideointelligenceV1p3beta1DetectedLandmark.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1DetectedLandmark
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1DetectedLandmark.
3515 3516 3517 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3515 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
The confidence score of the detected landmark. Range [0, 1].
Corresponds to the JSON property confidence
3501 3502 3503 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3501 def confidence @confidence end |
#name ⇒ String
The name of this landmark, i.e. left_hand, right_shoulder.
Corresponds to the JSON property name
3506 3507 3508 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3506 def name @name end |
#point ⇒ Google::Apis::VideointelligenceV1p3beta1::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
3513 3514 3515 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3513 def point @point end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3520 3521 3522 3523 3524 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3520 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 |