lib/rtesseract/tsv.rb in rtesseract-3.1.2 vs lib/rtesseract/tsv.rb in rtesseract-3.1.3
- old
+ new
@@ -3,12 +3,17 @@
class RTesseract
module Tsv
extend Base
def self.run(source, errors, options)
- options.tessedit_create_tsv = 1
+ options = options.merge({ tessedit_create_tsv: 1 })
- RTesseract::Command.new(source, temp_file_path, errors, options).run do |output_path|
+ RTesseract::Command.new(
+ source,
+ temp_file_path,
+ errors,
+ options
+ ).run do |output_path|
File.open("#{output_path}.tsv", 'r')
end
end
end
end