Class: Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak
- 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
-
#is_prefix ⇒ true, false
True if break prepends the element.
- #type ⇒ Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak::BreakType
Instance Attribute Details
#is_prefix ⇒ true, false
50 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 50 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 HYPHEN = 4 # not co-occur with SPACE, LEADER_SPACE, or # LINE_BREAK. # Line break that ends a paragraph. LINE_BREAK = 5 end end |
#type ⇒ Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak::BreakType
50 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 50 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 HYPHEN = 4 # not co-occur with SPACE, LEADER_SPACE, or # LINE_BREAK. # Line break that ends a paragraph. LINE_BREAK = 5 end end |