/image-to-text-api

Read text on image with this simple go microservice (nanoservice ;-) using gin and gosseract

Primary LanguageGo

image-to-text-api

Recognize text on JPEG images using tesseract ocr (gosseract)

Build Status Codacy Badge

QUICK START

docker run -p8000:8000 gbnk0/image-to-text-api:latest

API ENDPOINTS

POST /text

Recognize text on an image from url

  • Example:
#> curl -X POST   http://localhost:8000/text -F file=@/home/user/image.jpg
#> {"status":"success","text":"HELLO"}

GET /version

Get the service build number

  • Example:
#> curl -X GET   http://localhost:8000/version
#> {"status":"success","version":"15"}