Class: OCR::Image
- Inherits:
-
Object
- Object
- OCR::Image
- Defined in:
- lib/simple-ocr/image.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Image
constructor
Initialize your Input File.
-
#scan(output_file, options, type) ⇒ Object
OCR of input file (Main Function).
Constructor Details
#initialize(path) ⇒ Image
Initialize your Input File.
8 9 10 |
# File 'lib/simple-ocr/image.rb', line 8 def initialize(path) @image = path end |
Instance Method Details
#scan(output_file, options, type) ⇒ Object
OCR of input file (Main Function)
15 16 17 |
# File 'lib/simple-ocr/image.rb', line 15 def scan(output_file, , type) Scan.new(@image, output_file, , type).scan_img end |