Skip to content

Kamalpaneru/Xtractor

Repository files navigation

Xtractor

Build

Xtractor was developed as a need to the problem of inserting data from an excelsheet image to excel.And it does the same as described.

Installation

Add this line to your application's Gemfile:

gem 'xtractor'

And then execute:

$ bundle

Or install it yourself as:

$ gem install xtractor

Usage

Used to split cells from excel sheet images and extracts data.
NOTE: I've replaced Tesseract with Azure Computer Vision API(Not perfect but a significant improvement though).

  require 'xtractor'

  api_key = "Your_api_key_here"

  process = Xtractor::Execute.new('Image_Filename', api_key)

  process.begin_process

Sample Image

image_f3

Generate API key

Generate your API key
https://azure.microsoft.com/en-gb/try/cognitive-services/

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Kamalpaneru/Xtractor-Gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Xtractor project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.