Class: Azure::CognitiveServices::ComputerVision::V2_0::Models::LandmarksModel
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V2_0::Models::LandmarksModel
- Includes:
- MsRestAzure
- Defined in:
- lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb
Overview
A landmark recognized in the image.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
value ranging from 0 to 1.
-
#name ⇒ String
Name of the landmark.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LandmarksModel class as Ruby Hash.
Instance Attribute Details
#confidence ⇒ Float
value ranging from 0 to 1.
20 21 22 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb', line 20 def confidence @confidence end |
#name ⇒ String
Returns Name of the landmark.
16 17 18 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb', line 16 def name @name end |
Class Method Details
.mapper ⇒ Object
Mapper for LandmarksModel class as Ruby Hash. This will be used for serialization/deserialization.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb', line 27 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'LandmarksModel', type: { name: 'Composite', class_name: 'LandmarksModel', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, confidence: { client_side_validation: true, required: false, serialized_name: 'confidence', type: { name: 'Double' } } } } } end |