Skip to content

An OCR API server by Golang, can be easily deployed by Docker

License

Notifications You must be signed in to change notification settings

Stunext/ocrserver

 
 

Repository files navigation

ocrserver

Build Status

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

% git clone git@github.com:otiai10/ocrserver.git
% cd ocrserver
# heroku login (if needed)
% heroku create
# heroku container:login (If needed)
% heroku container:push web
# heroku open

cf. heroku cli

Quick Start

Ready-Made Docker Image

% docker run -e PORT=8080 -p 8080:8080 otiai10/ocrserver
# open http://localhost:8080

cf. docker

Development with Docker Image

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

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://localhost:8080

cf. gosseract

Dependencies

This project is strongly encouraged to follow the newest versions of dependencies, however, if you want to freeze or use freezed versions of dependencies you can use dep.

% dep ensure

Documents

About

An OCR API server by Golang, can be easily deployed by Docker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 39.4%
  • HTML 34.0%
  • JavaScript 20.4%
  • CSS 3.3%
  • Dockerfile 2.9%