Simple OCR server, as a small working sample for gosseract.
This fork contains a modified version, updated for Go 1.26, gosseract v2.4.1, and Tesseract v5, running on Alpine instead of Debian. It also hosts the image on ghcr.io instead of docker hub due to rate limits, with support for both arm64 and amd64/x86.
# Get the code
% git clone git@github.com:auroradevllc/ocrserver.git
% cd ocrserver
# Make your app
% heroku login
% heroku create
# Deploy the container
% heroku container:login
% heroku container:push web
# Enjoy it!
% heroku opencf. heroku cli
% docker run -p 8080:8080 ghcr.io/auroradevllc/ocrserver
# open http://localhost:8080cf. docker
% docker-compose up
# open http://localhost:8080You need more languages?
% docker-compose build --build-arg LOAD_LANG=rus
% docker-compose upcf. docker-compose
If you have tesseract-ocr and library files on your machine
% go get github.com/auroradevllc/ocrserver/...
% PORT=8080 ocrserver
# open http://localhost:8080cf. gosseract