Before you use this library, please install tesseract-ocr
.
- tesseract-ocr 3.02 needs for all tests passing
- tesseract-ocr 3.03 also supported but some tests failing
- tesseract-ocr 3.04 is not supported yet.
For OSX 10.9 Marvericks with homebrew:
$ brew install tesseract --all-languages
For Ubuntu Linux 14.04 LTS (Trusty Tahr):
$ sudo apt-get install libtesserac-dev libleptonica-dev
$ sudo apt-get install tesseract-ocr-eng tesseract-ocr-jpn
FreeBSD 10 release with pkgng:
$ export CC=clang
$ sudo pkg install -y tesseract pkgconf
$ sudo pkg install -y tesseract-data
Not supported yet.
This library depends on https://github.com/cosmo0920/leptonica-capi-go/.
$ go get "github.com/cosmo0920/leptonica-capi-go/"
$ go get "github.com/cosmo0920/tesseractocr-capi-go/"
and then,
import "github.com/cosmo0920/tesseractocr-capi-go/"
- OSX 10.9 Marvericks with homebrew
- Ubuntu Linux 14.04 LTS (Trusty Tahr)
- FreeBSD 10 release with pkgng