Class: Google::Cloud::Vision::V1::Page

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1/text_annotation.rb

Overview

Detected page from OCR.

Instance Attribute Summary collapse

Instance Attribute Details

#blocks::Array<::Google::Cloud::Vision::V1::Block>

Returns List of blocks of text, images etc on this page.

Returns:



120
121
122
123
# File 'proto_docs/google/cloud/vision/v1/text_annotation.rb', line 120

class Page
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#confidence::Float

Returns Confidence of the OCR results on the page. Range [0, 1].

Returns:

  • (::Float)

    Confidence of the OCR results on the page. Range [0, 1].



120
121
122
123
# File 'proto_docs/google/cloud/vision/v1/text_annotation.rb', line 120

class Page
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#height::Integer

Returns Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

Returns:

  • (::Integer)

    Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.



120
121
122
123
# File 'proto_docs/google/cloud/vision/v1/text_annotation.rb', line 120

class Page
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#property::Google::Cloud::Vision::V1::TextAnnotation::TextProperty

Returns Additional information detected on the page.

Returns:



120
121
122
123
# File 'proto_docs/google/cloud/vision/v1/text_annotation.rb', line 120

class Page
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#width::Integer

Returns Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

Returns:

  • (::Integer)

    Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.



120
121
122
123
# File 'proto_docs/google/cloud/vision/v1/text_annotation.rb', line 120

class Page
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end