README.md in rtesseract-3.0.0 vs README.md in rtesseract-3.0.1

- old
+ new

@@ -55,11 +55,11 @@ ### Convert image to TSV ```ruby image = RTesseract.new("my_image.jpg") - image.to_tsv # Getting open file of pdf + image.to_tsv # Getting open file of tsv ``` This will preserve the image colors, pictures and structure in the generated pdf. ## Options @@ -98,26 +98,27 @@ ### BOUNDING BOX: TO GET WORDS WITH THEIR POSITIONS ```ruby RTesseract.new('test_words.png').to_box ``` - # => [ - # {:word => 'If', :x_start=>52, :y_start=>13, :x_end=>63, :y_end=>27}, - # {:word => 'you', :x_start=>69, :y_start=>17, :x_end=>100, :y_end=>31}, - # {:word => 'are', :x_start=>108, :y_start=>17, :x_end=>136, :y_end=>27}, - # {:word => 'a', :x_start=>143, :y_start=>17, :x_end=>151, :y_end=>27}, - # {:word => 'friend,', :x_start=>158, :y_start=>13, :x_end=>214, :y_end=>29}, - # {:word => 'you', :x_start=>51, :y_start=>39, :x_end=>82, :y_end=>53}, - # {:word => 'speak', :x_start=>90, :y_start=>35, :x_end=>140, :y_end=>53}, - # {:word => 'the', :x_start=>146, :y_start=>35, :x_end=>174, :y_end=>49}, - # {:word => 'password,', :x_start=>182, :y_start=>35, :x_end=>267, :y_end=>53}, - # {:word => 'and', :x_start=>51, :y_start=>57, :x_end=>81, :y_end=>71}, - # {:word => 'the', :x_start=>89, :y_start=>57, :x_end=>117, :y_end=>71}, - # {:word => 'doors', :x_start=>124, :y_start=>57, :x_end=>172, :y_end=>71}, - # {:word => 'will', :x_start=>180, :y_start=>57, :x_end=>208, :y_end=>71}, - # {:word => 'open.', :x_start=>216, :y_start=>61, :x_end=>263, :y_end=>75} - # ] - + ```ruby + => [ + {:word => 'If', :x_start=>52, :y_start=>13, :x_end=>63, :y_end=>27}, + {:word => 'you', :x_start=>69, :y_start=>17, :x_end=>100, :y_end=>31}, + {:word => 'are', :x_start=>108, :y_start=>17, :x_end=>136, :y_end=>27}, + {:word => 'a', :x_start=>143, :y_start=>17, :x_end=>151, :y_end=>27}, + {:word => 'friend,', :x_start=>158, :y_start=>13, :x_end=>214, :y_end=>29}, + {:word => 'you', :x_start=>51, :y_start=>39, :x_end=>82, :y_end=>53}, + {:word => 'speak', :x_start=>90, :y_start=>35, :x_end=>140, :y_end=>53}, + {:word => 'the', :x_start=>146, :y_start=>35, :x_end=>174, :y_end=>49}, + {:word => 'password,', :x_start=>182, :y_start=>35, :x_end=>267, :y_end=>53}, + {:word => 'and', :x_start=>51, :y_start=>57, :x_end=>81, :y_end=>71}, + {:word => 'the', :x_start=>89, :y_start=>57, :x_end=>117, :y_end=>71}, + {:word => 'doors', :x_start=>124, :y_start=>57, :x_end=>172, :y_end=>71}, + {:word => 'will', :x_start=>180, :y_start=>57, :x_end=>208, :y_end=>71}, + {:word => 'open.', :x_start=>216, :y_start=>61, :x_end=>263, :y_end=>75} + ] + ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.