# ocrserver **Repository Path**: lzdn/ocrserver ## Basic Information - **Project Name**: ocrserver - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-21 - **Last Updated**: 2025-07-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ocrserver [![Go CI](https://github.com/otiai10/ocrserver/workflows/Go%20CI/badge.svg)](https://github.com/otiai10/ocrserver/actions?query=workflow%3A%22Go+CI%22) [![codecov](https://codecov.io/gh/otiai10/ocrserver/branch/main/graph/badge.svg)](https://codecov.io/gh/otiai10/ocrserver) [![Go Report Card](https://goreportcard.com/badge/github.com/otiai10/ocrserver)](https://goreportcard.com/report/github.com/otiai10/ocrserver) Simple OCR server, as a small working sample for [gosseract](https://github.com/otiai10/gosseract). Try now here https://ocr-example.herokuapp.com/, and deploy your own now. [![](https://user-images.githubusercontent.com/931554/36279290-7134626a-124b-11e8-8e47-d93b7122ea0d.png)](https://ocr-example.herokuapp.com) # Deploy to Heroku ```sh # Get the code % git clone git@github.com: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](https://devcenter.heroku.com/articles/heroku-cli#download-and-install) # Quick Start ## Ready-Made Docker Image ```sh % docker run -p 8080:8080 otiai10/ocrserver # open http://localhost:8080 ``` cf. [docker](https://www.docker.com/products/docker-toolbox) ## Development with Docker Image ```sh % docker-compose up # open http://localhost:8080 ``` You need more languages? ```sh % docker-compose build --build-arg LOAD_LANG=rus % docker-compose up ``` cf. [docker-compose](https://www.docker.com/products/docker-toolbox) ## Manual Setup If you have tesseract-ocr and library files on your machine ```sh % go get github.com/otiai10/ocrserver/... % PORT=8080 ocrserver # open http://localhost:8080 ``` cf. [gosseract](https://github.com/otiai10/gosseract) # Documents - [API Endpoints](https://github.com/otiai10/ocrserver/wiki/API-Endpoints)