Skip to content
forked from otiai10/ocrserver

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

License

Notifications You must be signed in to change notification settings

tonobo/ocrserver

 
 

Repository files navigation

ocrserver

Build Status codecov Go Report Card

Simple OCR server, as a small working sample for gosseract.

Try now here https://ocr-example.herokuapp.com/, and deploy your own now.

Deploy to Heroku

# Get the code
% git clone [email protected]:otiai10/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 otiai10/ocrserver
# open http:https://localhost:8080

cf. docker

Development with Docker Image

% docker-compose up
# open http:https://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/otiai10/ocrserver/...
% PORT=8080 ocrserver
# open http:https://localhost:8080

cf. gosseract

Documents

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 52.6%
  • HTML 26.5%
  • JavaScript 15.8%
  • Dockerfile 2.7%
  • CSS 2.4%