Class: Mindee::V1::Parsing::Common::OCR::OCR
- Inherits:
-
Object
- Object
- Mindee::V1::Parsing::Common::OCR::OCR
- Defined in:
- lib/mindee/v1/parsing/common/ocr/ocr.rb
Overview
OCR extraction from the entire document.
Instance Attribute Summary collapse
-
#mvision_v1 ⇒ Mindee::V1::Parsing::Common::OCR::MVisionV1
readonly
Mindee Vision v1 results.
Instance Method Summary collapse
-
#initialize(prediction) ⇒ OCR
constructor
A new instance of OCR.
-
#reconstruct_vertically(coordinates, page_id, x_margin = 0.05) ⇒ Mindee::V1::Parsing::Common::OCR::OCRLine
Constructs a line from a column, located underneath given coordinates should start.
- #to_s ⇒ String
Constructor Details
Instance Attribute Details
#mvision_v1 ⇒ Mindee::V1::Parsing::Common::OCR::MVisionV1 (readonly)
Mindee Vision v1 results.
154 155 156 |
# File 'lib/mindee/v1/parsing/common/ocr/ocr.rb', line 154 def mvision_v1 @mvision_v1 end |
Instance Method Details
#reconstruct_vertically(coordinates, page_id, x_margin = 0.05) ⇒ Mindee::V1::Parsing::Common::OCR::OCRLine
Constructs a line from a column, located underneath given coordinates should start
172 173 174 |
# File 'lib/mindee/v1/parsing/common/ocr/ocr.rb', line 172 def reconstruct_vertically(coordinates, page_id, x_margin = 0.05) @mvision_v1.reconstruct_vertically(coordinates, page_id, x_margin) end |
#to_s ⇒ String
162 163 164 |
# File 'lib/mindee/v1/parsing/common/ocr/ocr.rb', line 162 def to_s @mvision_v1.to_s end |