class OCR::Image
Public Class Methods
new(path)
click to toggle source
Initialize your Input File.
@params [String] path to input file.
# File lib/simple-ocr/image.rb, line 8 def initialize(path) @image = path end
Public Instance Methods
scan(output_file, options, type)
click to toggle source
OCR
of input file (Main Function)
@params [String, String, String] path to output file, options of conversion (e.g. Language), output format of file.
# File lib/simple-ocr/image.rb, line 15 def scan(output_file, options, type) Scan.new(@image, output_file, options, type).scan_img end