POC to test lib tesseract with portuguese and english language.
edit: now just portuguese for performance: test perf test perf 2
This works properly using images with 300 dpi <= x <= 600 dpi.
go mod vendor
gcc g++ libc-dev tesseract-ocr tesseract-ocr-dev leptonica-dev
wget -q -P /usr/share/tessdata/ https://github.com/tesseract-ocr/tessdata_best/raw/master/por.traineddata
# Pull docker image
make docker/build
# Enter shell on docker
make docker/shell
# Inside docker
cd /go/src/github.com/arthurhenrique/go-ocr
# Installing gosseract deps
go mod vendor
# Running
go run *.go