Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 855 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 855 Bytes

Node OCR server

Node OCR microsservice using tesseract and RabbitMQ.

Usage

This server can be used with Docker (see docker-compose file for example). In Linux:

sudo apt install tesseract-ocr
npm install
npm start

Settings

Settings need to be passed as enviroment variables:

  • QUEUE_SERVER: RabbitMQ queue server. Default: 'localhost:5672'
  • FILES_SERVER: Node Files Server URL. Default: 'localhost:3000'
  • INPUT_QUEUE_NAME: RabbitMQ input queue name. Default: 'ocr-in'
  • OUTPUT_QUEUE_NAME: RabbitMQ input queue name. Default: 'ocr-out'
  • FILES_PATH: Folder for temporally files. Default: '/temp'

Publishing a new version

docker login
docker build -t maxjf1/node-ocr-server:latest .
docker push maxjf1/node-ocr-server:latest