It is subscribed to textimage_created
kafka topic.
Uses tesseract as OCR engine
After processing image it publishes message to ocr
topic.
ENV
KAFKA_CLIENT_ID=ocr_service
KAFKA_SOCKET = kafka-broker:9093
rspec spec/
bundle exec karafka server
ocr:
build:
context: ./../ocr
dockerfile: Dockerfile
env_file: .env
command: bundle exec karafka server
volumes:
- files-shared:/ltm:rw
depends_on:
- kafka-broker
environment:
- KAFKA_CLIENT_ID=ocr_service
example can be found here