Cloud Vision V1 API - Class Google::Cloud::Vision::V1::Page (v0.11.1)

Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::Page.

Detected page from OCR.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#blocks

def blocks() -> ::Array<::Google::Cloud::Vision::V1::Block>
Returns

#blocks=

def blocks=(value) -> ::Array<::Google::Cloud::Vision::V1::Block>
Parameter
Returns

#confidence

def confidence() -> ::Float
Returns
  • (::Float) — Confidence of the OCR results on the page. Range [0, 1].

#confidence=

def confidence=(value) -> ::Float
Parameter
  • value (::Float) — Confidence of the OCR results on the page. Range [0, 1].
Returns
  • (::Float) — Confidence of the OCR results on the page. Range [0, 1].

#height

def height() -> ::Integer
Returns
  • (::Integer) — Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

#height=

def height=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.

#property

def property() -> ::Google::Cloud::Vision::V1::TextAnnotation::TextProperty
Returns

#property=

def property=(value) -> ::Google::Cloud::Vision::V1::TextAnnotation::TextProperty
Parameter
Returns

#width

def width() -> ::Integer
Returns
  • (::Integer) — Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

#width=

def width=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.