Class: Azure::CognitiveServices::ComputerVision::V2_1::Models::Line
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V2_1::Models::Line
- Includes:
- MsRestAzure
- Defined in:
- lib/2.1/generated/azure_cognitiveservices_computervision/models/line.rb
Overview
An object representing a recognized text line.
Instance Attribute Summary collapse
-
#bounding_box ⇒ Array<Float>
Bounding box of a recognized line.
-
#text ⇒ String
The text content of the line.
-
#words ⇒ Array<Word>
List of words in the text line.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Line class as Ruby Hash.
Instance Attribute Details
#bounding_box ⇒ Array<Float>
Returns Bounding box of a recognized line.
16 17 18 |
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/line.rb', line 16 def bounding_box @bounding_box end |
#text ⇒ String
Returns The text content of the line.
19 20 21 |
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/line.rb', line 19 def text @text end |
#words ⇒ Array<Word>
Returns List of words in the text line.
22 23 24 |
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/line.rb', line 22 def words @words end |
Class Method Details
.mapper ⇒ Object
Mapper for Line class as Ruby Hash. This will be used for serialization/deserialization.
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/line.rb', line 29 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Line', type: { name: 'Composite', class_name: 'Line', model_properties: { bounding_box: { client_side_validation: true, required: false, 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: false, serialized_name: 'text', type: { name: 'String' } }, words: { client_side_validation: true, required: false, serialized_name: 'words', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'WordElementType', type: { name: 'Composite', class_name: 'Word' } } } } } } } end |