Cloud Vision V1 API - Class Google::Cloud::Vision::V1::TextAnnotation (v0.9.0)

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

TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own properties. Properties describe detected languages, breaks etc.. Please refer to the TextAnnotation.TextProperty message definition below for more detail.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#pages

def pages() -> ::Array<::Google::Cloud::Vision::V1::Page>
Returns

#pages=

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

#text

def text() -> ::String
Returns
  • (::String) — UTF-8 text detected on the pages.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — UTF-8 text detected on the pages.
Returns
  • (::String) — UTF-8 text detected on the pages.