Class: Azure::CognitiveServices::ComputerVision::V2_0::Models::Word
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V2_0::Models::Word
- 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
-
#bounding_box ⇒ Array<Float>
Bounding box of a recognized word.
-
#confidence ⇒ TextRecognitionResultConfidenceClass
measure.
-
#text ⇒ String
The text content of the word.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Word class as Ruby Hash.
Instance Attribute Details
#bounding_box ⇒ Array<Float>
Returns 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 |
#confidence ⇒ TextRecognitionResultConfidenceClass
measure. Possible values include: ‘High’, ‘Low’
23 24 25 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb', line 23 def confidence @confidence end |
#text ⇒ String
Returns 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
.mapper ⇒ Object
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 |