Module: RTesseract::Tsv
- Extended by:
- Base
- Defined in:
- lib/rtesseract/tsv.rb
Class Method Summary collapse
Methods included from Base
remove_tmp_file, temp_file_path
Class Method Details
.run(source, errors, options) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rtesseract/tsv.rb', line 7 def self.run(source, errors, ) = .merge({ tessedit_create_tsv: 1 }) RTesseract::Command.new( source, temp_file_path, errors, ).run do |output_path| File.open("#{output_path}.tsv", 'r') end end |