Class: Kreuzberg::Config::Tesseract
- Inherits:
-
Object
- Object
- Kreuzberg::Config::Tesseract
- Defined in:
- lib/kreuzberg/config.rb
Overview
Tesseract OCR engine configuration
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Tesseract
constructor
A new instance of Tesseract.
- #to_h ⇒ Object
Constructor Details
#initialize(**options) ⇒ Tesseract
Returns a new instance of Tesseract.
66 67 68 69 |
# File 'lib/kreuzberg/config.rb', line 66 def initialize(**) @options = .transform_keys(&:to_sym) normalize_nested_preprocessing! end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
64 65 66 |
# File 'lib/kreuzberg/config.rb', line 64 def @options end |
Instance Method Details
#to_h ⇒ Object
71 72 73 |
# File 'lib/kreuzberg/config.rb', line 71 def to_h @options.dup end |