class Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Page

Detected page from OCR.

Attributes

blocks[RW]

List of blocks of text, images etc on this page. Corresponds to the JSON property `blocks` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Block>]

confidence[RW]

Confidence of the OCR results on the page. Range [0, 1]. Corresponds to the JSON property `confidence` @return [Float]

height[RW]

Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels. Corresponds to the JSON property `height` @return [Fixnum]

property[RW]

Additional information detected on the structural component. Corresponds to the JSON property `property` @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]

width[RW]

Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 2316
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_v1p1beta1/classes.rb, line 2321
def update!(**args)
  @blocks = args[:blocks] if args.key?(:blocks)
  @confidence = args[:confidence] if args.key?(:confidence)
  @height = args[:height] if args.key?(:height)
  @property = args[:property] if args.key?(:property)
  @width = args[:width] if args.key?(:width)
end