class Google::Apis::VisionV1p2beta1::Block
Logical element on the page.
Attributes
Detected block type (text, image etc) for this block. Corresponds to the JSON property `blockType` @return [String]
A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingBox` @return [Google::Apis::VisionV1p2beta1::BoundingPoly]
Confidence of the OCR results on the block. Range [0, 1]. Corresponds to the JSON property `confidence` @return [Float]
List of paragraphs in this block (if this blocks is of type text). Corresponds to the JSON property `paragraphs` @return [Array<Google::Apis::VisionV1p2beta1::Paragraph>]
Additional information detected on the structural component. Corresponds to the JSON property `property` @return [Google::Apis::VisionV1p2beta1::TextProperty]
Public Class Methods
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 320 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 325 def update!(**args) @block_type = args[:block_type] if args.key?(:block_type) @bounding_box = args[:bounding_box] if args.key?(:bounding_box) @confidence = args[:confidence] if args.key?(:confidence) @paragraphs = args[:paragraphs] if args.key?(:paragraphs) @property = args[:property] if args.key?(:property) end