class Azure::CognitiveServices::ComputerVision::V2_0::Models::Line
An object representing a recognized text line.
Attributes
bounding_box[RW]
@return [Array<Float>] Bounding box of a recognized line.
text[RW]
@return [String] The text content of the line.
words[RW]
@return [Array<Word>] List of words in the text line.
Public Class Methods
mapper()
click to toggle source
Mapper for Line
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2.0/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