lib/rtesseract/mixed.rb in rtesseract-0.0.13 vs lib/rtesseract/mixed.rb in rtesseract-1.0.0

- old
+ new

@@ -23,10 +23,10 @@ #Convert parts of image to string def convert @value = "" @areas.each do |area| - image = RTesseract.new(@source.to_s,@options) + image = RTesseract.new(@source.to_s,@options.dup) image.crop!(area[:x].to_i, area[:y].to_i, area[:width].to_i, area[:height].to_i) @value << image.to_s end rescue raise RTesseract::ConversionError