Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1beta2DetectedLandmark
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1beta2DetectedLandmark
- 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
-
#confidence ⇒ Float
The confidence score of the detected landmark.
-
#name ⇒ String
The name of this landmark, for example, left_hand, right_shoulder.
-
#point ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1beta2NormalizedVertex
A vertex represents a 2D point in the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2DetectedLandmark
constructor
A new instance of GoogleCloudVideointelligenceV1beta2DetectedLandmark.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2DetectedLandmark
Returns a new instance of GoogleCloudVideointelligenceV1beta2DetectedLandmark.
1265 1266 1267 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1265 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
1252 1253 1254 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1252 def confidence @confidence end |
#name ⇒ String
The name of this landmark, for example, left_hand, right_shoulder.
Corresponds to the JSON property name
1257 1258 1259 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1257 def name @name end |
#point ⇒ Google::Apis::VideointelligenceV1p3beta1::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
1263 1264 1265 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1263 def point @point end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1270 1271 1272 1273 1274 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1270 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 |