Class: Azure::CognitiveServices::ComputerVision::V2_0::Models::LandmarksModel

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#confidenceFloat

value ranging from 0 to 1.

Returns:

  • (Float)

    Confidence level for the landmark recognition as a



20
21
22
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb', line 20

def confidence
  @confidence
end

#nameString

Returns Name of the landmark.

Returns:

  • (String)

    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

.mapperObject

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