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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/vision/v1/doc/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:



103
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 103

class Page; 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].



103
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 103

class Page; 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.



103
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 103

class Page; end

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

Returns Additional information detected on the page.

Returns:



103
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 103

class Page; 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.



103
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 103

class Page; end