Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::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::V1p3beta1::Page>
- (::Array<::Google::Cloud::Vision::V1p3beta1::Page>) — List of pages detected by OCR.
#pages=
def pages=(value) -> ::Array<::Google::Cloud::Vision::V1p3beta1::Page>
- value (::Array<::Google::Cloud::Vision::V1p3beta1::Page>) — List of pages detected by OCR.
- (::Array<::Google::Cloud::Vision::V1p3beta1::Page>) — List of pages detected by OCR.
#text
def text() -> ::String
- (::String) — UTF-8 text detected on the pages.
#text=
def text=(value) -> ::String
- value (::String) — UTF-8 text detected on the pages.
- (::String) — UTF-8 text detected on the pages.