lib/rtesseract/mixed.rb in rtesseract-1.2.2 vs lib/rtesseract/mixed.rb in rtesseract-1.2.3

- old
+ new

@@ -21,11 +21,11 @@ @areas = [] end # Convert parts of image to string def convert - @value = '' + @value = [] @areas.each_with_object(RTesseract.new(@source.to_s, @options.dup)) do |area, image| image.crop!(area[:x], area[:y], area[:width], area[:height]) @value << image.to_s end rescue => error @@ -35,10 +35,10 @@ # Output value def to_s return @value if @value != '' if @source.file? convert - @value + @value.join else fail RTesseract::ImageNotSelectedError.new(@source) end end