Class: Azure::CognitiveServices::ComputerVision::V2_0::Models::Word

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb

Overview

An object representing a recognized word.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bounding_boxArray<Float>

Returns Bounding box of a recognized word.

Returns:

  • (Array<Float>)

    Bounding box of a recognized word.



16
17
18
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb', line 16

def bounding_box
  @bounding_box
end

#confidenceTextRecognitionResultConfidenceClass

measure. Possible values include: ‘High’, ‘Low’

Returns:



23
24
25
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb', line 23

def confidence
  @confidence
end

#textString

Returns The text content of the word.

Returns:

  • (String)

    The text content of the word.



19
20
21
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb', line 19

def text
  @text
end

Class Method Details

.mapperObject

Mapper for Word class as Ruby Hash. This will be used for serialization/deserialization.



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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Word',
    type: {
      name: 'Composite',
      class_name: 'Word',
      model_properties: {
        bounding_box: {
          client_side_validation: true,
          required: true,
          serialized_name: 'boundingBox',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FloatElementType',
                type: {
                  name: 'Double'
                }
            }
          }
        },
        text: {
          client_side_validation: true,
          required: true,
          serialized_name: 'text',
          type: {
            name: 'String'
          }
        },
        confidence: {
          client_side_validation: true,
          required: false,
          serialized_name: 'confidence',
          type: {
            name: 'Enum',
            module: 'TextRecognitionResultConfidenceClass'
          }
        }
      }
    }
  }
end