Module: RTesseract::Tsv

Extended by:
Base
Defined in:
lib/rtesseract/tsv.rb

Class Method Summary collapse

Methods included from Base

temp_file_path

Class Method Details

.run(source, errors, options) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rtesseract/tsv.rb', line 7

def self.run(source, errors, options)
  options.tessedit_create_tsv = 1

  RTesseract::Command.new(source, temp_file_path, errors, options).run do |output_path|
    File.open("#{output_path}.tsv", 'r')
  end
end