Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocrserver

Go CI codecov Go Report Card

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.

Deploy to Heroku

# 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 open

cf. heroku cli

Quick Start

Ready-Made Docker Image

% docker run -p 8080:8080 ghcr.io/auroradevllc/ocrserver
# open http://localhost:8080

cf. docker

Development with Docker Image

% docker-compose up
# open http://localhost:8080

You need more languages?

% docker-compose build --build-arg LOAD_LANG=rus
% docker-compose up

cf. docker-compose

Manual Setup

If you have tesseract-ocr and library files on your machine

% go get github.com/auroradevllc/ocrserver/...
% PORT=8080 ocrserver
# open http://localhost:8080

cf. gosseract

Documents

About

A simple OCR API server, seriously easy to be deployed by Docker, on Heroku as well

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages