Skip to content
This is a wrapper of Tesseract OCR. Helping to read characters on a image.
Crystal
Branch: master
Clone or download
Latest commit 581d99d Aug 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec Starting tesseract-ocr lib Aug 12, 2019
src Starting tesseract-ocr lib Aug 12, 2019
.editorconfig Starting tesseract-ocr lib Aug 12, 2019
.gitignore Starting tesseract-ocr lib Aug 12, 2019
.travis.yml Fix travis build Aug 12, 2019
LICENSE Starting tesseract-ocr lib Aug 12, 2019
README.md Fix repository name Aug 12, 2019
shard.yml Starting tesseract-ocr lib Aug 12, 2019

README.md

tesseract-ocr

This package is a wrapper of Tesseract OCR. Helping to read characters on a image.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      tesseract-ocr:
        github: dannnylo/tesseract-ocr-crystal
  2. Run shards install

Usage

require "tesseract-ocr"

Basic usage:

Tesseract::Ocr.read("spec/resources/world.png") => "world"

With options:

Tesseract::Ocr.read("spec/resources/world.png", { l: "por", oem: "1" }) => "world"

Contributing

  1. Fork it (https://github.com/dannnylo/tesseract-ocr-crystal/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

You can’t perform that action at this time.