Class: Google::Cloud::Vision::V1::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb

Overview

Logical element on the page.

Defined Under Namespace

Modules: BlockType

Instance Attribute Summary collapse

Instance Attribute Details

#block_typeGoogle::Cloud::Vision::V1::Block::BlockType



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 127

class Block
  # Type of a block (text, image etc) as identified by OCR.
  module BlockType
    # Unknown block type.
    UNKNOWN = 0

    # Regular text block.
    TEXT = 1

    # Table block.
    TABLE = 2

    # Image block.
    PICTURE = 3

    # Horizontal/vertical line box.
    RULER = 4

    # Barcode block.
    BARCODE = 5
  end
end

#bounding_boxGoogle::Cloud::Vision::V1::BoundingPoly



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 127

class Block
  # Type of a block (text, image etc) as identified by OCR.
  module BlockType
    # Unknown block type.
    UNKNOWN = 0

    # Regular text block.
    TEXT = 1

    # Table block.
    TABLE = 2

    # Image block.
    PICTURE = 3

    # Horizontal/vertical line box.
    RULER = 4

    # Barcode block.
    BARCODE = 5
  end
end

#paragraphsArray<Google::Cloud::Vision::V1::Paragraph>



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 127

class Block
  # Type of a block (text, image etc) as identified by OCR.
  module BlockType
    # Unknown block type.
    UNKNOWN = 0

    # Regular text block.
    TEXT = 1

    # Table block.
    TABLE = 2

    # Image block.
    PICTURE = 3

    # Horizontal/vertical line box.
    RULER = 4

    # Barcode block.
    BARCODE = 5
  end
end

#propertyGoogle::Cloud::Vision::V1::TextAnnotation::TextProperty



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 127

class Block
  # Type of a block (text, image etc) as identified by OCR.
  module BlockType
    # Unknown block type.
    UNKNOWN = 0

    # Regular text block.
    TEXT = 1

    # Table block.
    TABLE = 2

    # Image block.
    PICTURE = 3

    # Horizontal/vertical line box.
    RULER = 4

    # Barcode block.
    BARCODE = 5
  end
end