proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb in google-cloud-vision-v1p3beta1-0.1.4 vs proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb in google-cloud-vision-v1p3beta1-0.1.5
- old
+ new
@@ -25,46 +25,46 @@
# 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
- # {Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty TextAnnotation.TextProperty}
+ # {::Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty TextAnnotation.TextProperty}
# message definition below for more detail.
# @!attribute [rw] pages
- # @return [Array<Google::Cloud::Vision::V1p3beta1::Page>]
+ # @return [::Array<::Google::Cloud::Vision::V1p3beta1::Page>]
# List of pages detected by OCR.
# @!attribute [rw] text
- # @return [String]
+ # @return [::String]
# UTF-8 text detected on the pages.
class TextAnnotation
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
# Detected language for a structural component.
# @!attribute [rw] language_code
- # @return [String]
+ # @return [::String]
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
# information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# @!attribute [rw] confidence
- # @return [Float]
+ # @return [::Float]
# Confidence of detected language. Range [0, 1].
class DetectedLanguage
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
end
# Detected start or end of a structural component.
# @!attribute [rw] type
- # @return [Google::Cloud::Vision::V1p3beta1::TextAnnotation::DetectedBreak::BreakType]
+ # @return [::Google::Cloud::Vision::V1p3beta1::TextAnnotation::DetectedBreak::BreakType]
# Detected break type.
# @!attribute [rw] is_prefix
- # @return [Boolean]
+ # @return [::Boolean]
# True if break prepends the element.
class DetectedBreak
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
# Enum to denote the type of break found. New line, space etc.
module BreakType
# Unknown break label type.
UNKNOWN = 0
@@ -87,50 +87,50 @@
end
end
# Additional information detected on the structural component.
# @!attribute [rw] detected_languages
- # @return [Array<Google::Cloud::Vision::V1p3beta1::TextAnnotation::DetectedLanguage>]
+ # @return [::Array<::Google::Cloud::Vision::V1p3beta1::TextAnnotation::DetectedLanguage>]
# A list of detected languages together with confidence.
# @!attribute [rw] detected_break
- # @return [Google::Cloud::Vision::V1p3beta1::TextAnnotation::DetectedBreak]
+ # @return [::Google::Cloud::Vision::V1p3beta1::TextAnnotation::DetectedBreak]
# Detected start or end of a text segment.
class TextProperty
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
end
end
# Detected page from OCR.
# @!attribute [rw] property
- # @return [Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
+ # @return [::Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
# Additional information detected on the page.
# @!attribute [rw] width
- # @return [Integer]
+ # @return [::Integer]
# Page width. For PDFs the unit is points. For images (including
# TIFFs) the unit is pixels.
# @!attribute [rw] height
- # @return [Integer]
+ # @return [::Integer]
# Page height. For PDFs the unit is points. For images (including
# TIFFs) the unit is pixels.
# @!attribute [rw] blocks
- # @return [Array<Google::Cloud::Vision::V1p3beta1::Block>]
+ # @return [::Array<::Google::Cloud::Vision::V1p3beta1::Block>]
# List of blocks of text, images etc on this page.
# @!attribute [rw] confidence
- # @return [Float]
+ # @return [::Float]
# Confidence of the OCR results on the page. Range [0, 1].
class Page
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
end
# Logical element on the page.
# @!attribute [rw] property
- # @return [Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
+ # @return [::Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
# Additional information detected for the block.
# @!attribute [rw] bounding_box
- # @return [Google::Cloud::Vision::V1p3beta1::BoundingPoly]
+ # @return [::Google::Cloud::Vision::V1p3beta1::BoundingPoly]
# The bounding box for the block.
# The vertices are in the order of top-left, top-right, bottom-right,
# bottom-left. When a rotation of the bounding box is detected the rotation
# is represented as around the top-left corner as defined when the text is
# read in the 'natural' orientation.
@@ -148,21 +148,21 @@
# | |
# 1----0
#
# and the vertice order will still be (0, 1, 2, 3).
# @!attribute [rw] paragraphs
- # @return [Array<Google::Cloud::Vision::V1p3beta1::Paragraph>]
+ # @return [::Array<::Google::Cloud::Vision::V1p3beta1::Paragraph>]
# List of paragraphs in this block (if this blocks is of type text).
# @!attribute [rw] block_type
- # @return [Google::Cloud::Vision::V1p3beta1::Block::BlockType]
+ # @return [::Google::Cloud::Vision::V1p3beta1::Block::BlockType]
# Detected block type (text, image etc) for this block.
# @!attribute [rw] confidence
- # @return [Float]
+ # @return [::Float]
# Confidence of the OCR results on the block. Range [0, 1].
class Block
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
# Type of a block (text, image etc) as identified by OCR.
module BlockType
# Unknown block type.
UNKNOWN = 0
@@ -184,14 +184,14 @@
end
end
# Structural unit of text representing a number of words in certain order.
# @!attribute [rw] property
- # @return [Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
+ # @return [::Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
# Additional information detected for the paragraph.
# @!attribute [rw] bounding_box
- # @return [Google::Cloud::Vision::V1p3beta1::BoundingPoly]
+ # @return [::Google::Cloud::Vision::V1p3beta1::BoundingPoly]
# The bounding box for the paragraph.
# The vertices are in the order of top-left, top-right, bottom-right,
# bottom-left. When a rotation of the bounding box is detected the rotation
# is represented as around the top-left corner as defined when the text is
# read in the 'natural' orientation.
@@ -204,26 +204,26 @@
# 2----3
# | |
# 1----0
# and the vertice order will still be (0, 1, 2, 3).
# @!attribute [rw] words
- # @return [Array<Google::Cloud::Vision::V1p3beta1::Word>]
+ # @return [::Array<::Google::Cloud::Vision::V1p3beta1::Word>]
# List of words in this paragraph.
# @!attribute [rw] confidence
- # @return [Float]
+ # @return [::Float]
# Confidence of the OCR results for the paragraph. Range [0, 1].
class Paragraph
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
end
# A word representation.
# @!attribute [rw] property
- # @return [Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
+ # @return [::Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
# Additional information detected for the word.
# @!attribute [rw] bounding_box
- # @return [Google::Cloud::Vision::V1p3beta1::BoundingPoly]
+ # @return [::Google::Cloud::Vision::V1p3beta1::BoundingPoly]
# The bounding box for the word.
# The vertices are in the order of top-left, top-right, bottom-right,
# bottom-left. When a rotation of the bounding box is detected the rotation
# is represented as around the top-left corner as defined when the text is
# read in the 'natural' orientation.
@@ -236,27 +236,27 @@
# 2----3
# | |
# 1----0
# and the vertice order will still be (0, 1, 2, 3).
# @!attribute [rw] symbols
- # @return [Array<Google::Cloud::Vision::V1p3beta1::Symbol>]
+ # @return [::Array<::Google::Cloud::Vision::V1p3beta1::Symbol>]
# List of symbols in the word.
# The order of the symbols follows the natural reading order.
# @!attribute [rw] confidence
- # @return [Float]
+ # @return [::Float]
# Confidence of the OCR results for the word. Range [0, 1].
class Word
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
end
# A single symbol representation.
# @!attribute [rw] property
- # @return [Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
+ # @return [::Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty]
# Additional information detected for the symbol.
# @!attribute [rw] bounding_box
- # @return [Google::Cloud::Vision::V1p3beta1::BoundingPoly]
+ # @return [::Google::Cloud::Vision::V1p3beta1::BoundingPoly]
# The bounding box for the symbol.
# The vertices are in the order of top-left, top-right, bottom-right,
# bottom-left. When a rotation of the bounding box is detected the rotation
# is represented as around the top-left corner as defined when the text is
# read in the 'natural' orientation.
@@ -269,17 +269,17 @@
# 2----3
# | |
# 1----0
# and the vertice order will still be (0, 1, 2, 3).
# @!attribute [rw] text
- # @return [String]
+ # @return [::String]
# The actual UTF-8 representation of the symbol.
# @!attribute [rw] confidence
- # @return [Float]
+ # @return [::Float]
# Confidence of the OCR results for the symbol. Range [0, 1].
class Symbol
- include Google::Protobuf::MessageExts
- extend Google::Protobuf::MessageExts::ClassMethods
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
end
end
end
end
end