Class: Google::Apis::VisionV1::GoogleCloudVisionV1Page
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::GoogleCloudVisionV1Page
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb
Overview
Detected page from OCR.
Instance Attribute Summary collapse
-
#blocks ⇒ Array<Google::Apis::VisionV1::GoogleCloudVisionV1Block>
List of blocks of text, images etc on this page.
-
#height ⇒ Fixnum
Page height in pixels.
-
#property ⇒ Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty
Additional information detected on the structural component.
-
#width ⇒ Fixnum
Page width in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1Page
constructor
A new instance of GoogleCloudVisionV1Page.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1Page
Returns a new instance of GoogleCloudVisionV1Page
950 951 952 |
# File 'generated/google/apis/vision_v1/classes.rb', line 950 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blocks ⇒ Array<Google::Apis::VisionV1::GoogleCloudVisionV1Block>
List of blocks of text, images etc on this page.
Corresponds to the JSON property blocks
933 934 935 |
# File 'generated/google/apis/vision_v1/classes.rb', line 933 def blocks @blocks end |
#height ⇒ Fixnum
Page height in pixels.
Corresponds to the JSON property height
938 939 940 |
# File 'generated/google/apis/vision_v1/classes.rb', line 938 def height @height end |
#property ⇒ Google::Apis::VisionV1::GoogleCloudVisionV1TextAnnotationTextProperty
Additional information detected on the structural component.
Corresponds to the JSON property property
943 944 945 |
# File 'generated/google/apis/vision_v1/classes.rb', line 943 def property @property end |
#width ⇒ Fixnum
Page width in pixels.
Corresponds to the JSON property width
948 949 950 |
# File 'generated/google/apis/vision_v1/classes.rb', line 948 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
955 956 957 958 959 960 |
# File 'generated/google/apis/vision_v1/classes.rb', line 955 def update!(**args) @blocks = args[:blocks] if args.key?(:blocks) @height = args[:height] if args.key?(:height) @property = args[:property] if args.key?(:property) @width = args[:width] if args.key?(:width) end |