Class: OCR::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/simple-ocr/image.rb

Instance Method Summary collapse

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, options, type)
  Scan.new(@image, output_file, options, type).scan_img
end