Class: Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb

Overview

Detected start or end of a structural component.

Defined Under Namespace

Modules: BreakType

Instance Attribute Summary collapse

Instance Attribute Details

#is_prefixtrue, false

Returns True if break prepends the element.

Returns:

  • (true, false)

    True if break prepends the element.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 51

class DetectedBreak
  # Enum to denote the type of break found. New line, space etc.
  module BreakType
    # Unknown break label type.
    UNKNOWN = 0

    # Regular space.
    SPACE = 1

    # Sure space (very wide).
    SURE_SPACE = 2

    # Line-wrapping break.
    EOL_SURE_SPACE = 3

    # End-line hyphen that is not present in text; does not co-occur with
    # +SPACE+, +LEADER_SPACE+, or +LINE_BREAK+.
    HYPHEN = 4

    # Line break that ends a paragraph.
    LINE_BREAK = 5
  end
end

#typeGoogle::Cloud::Vision::V1::TextAnnotation::DetectedBreak::BreakType

Returns Detected break type.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 51

class DetectedBreak
  # Enum to denote the type of break found. New line, space etc.
  module BreakType
    # Unknown break label type.
    UNKNOWN = 0

    # Regular space.
    SPACE = 1

    # Sure space (very wide).
    SURE_SPACE = 2

    # Line-wrapping break.
    EOL_SURE_SPACE = 3

    # End-line hyphen that is not present in text; does not co-occur with
    # +SPACE+, +LEADER_SPACE+, or +LINE_BREAK+.
    HYPHEN = 4

    # Line break that ends a paragraph.
    LINE_BREAK = 5
  end
end