class Google::Apis::VisionV1::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.
Attributes
pages[RW]
List of pages detected by OCR. Corresponds to the JSON property `pages` @return [Array<Google::Apis::VisionV1::Page>]
text[RW]
UTF-8 text detected on the pages. Corresponds to the JSON property `text` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 9930 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/vision_v1/classes.rb, line 9935 def update!(**args) @pages = args[:pages] if args.key?(:pages) @text = args[:text] if args.key?(:text) end