Skip to content
This package is a wrapper of Tesseract OCR. Helping to read characters on a image.
Elixir
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.codeclimate.yml
.formatter.exs
.gitignore
.travis.yml
LICENSE
README.md
mix.exs
mix.lock

README.md

TesseractOcr

Build Status

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

Installation

If available in Hex, the package can be installed by adding tesseract_ocr to your list of dependencies in mix.exs:

def deps do
  [
    {:tesseract_ocr, "~> 0.1.0"}
  ]
end

*** Atention: You will need to install the tesseract Ocr application on your operation system. *** Instalation wiki

Usage

Basic usage:

  TesseractOCR.read('path/of/my/image.ext')
  iex> TesseractOcr.read("test/resources/world.png")
  "world"

With options:

  iex> TesseractOcr.read("test/resources/world.png", %{lang: 'por', psm: 7, oem: 1})
  "world"

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/tesseract_ocr.

You can’t perform that action at this time.