Dockerize Tesseract OCR in an Alpine Image. Care has been taken to reduce the size to a minimum.
349
This is an Apline 3.7 image, and contains the latest stable release of Tesseract OCR (https://github.com/tesseract-ocr/tesseract/ ). Tesseract OCR is built from its sources and then installed in the Alpine image. The below supporting libraries are also built from their sources so that Tesseract runs fine:
It supports the below most popular image formats:
This is how you run it:
docker run -it -v /full-path-to/sample-images:/input-output -e LANG=eng -e IMAGE=/input-output/english-text.tif -e OUTFILE=/input-output/output -e TESSDATA_PREFIX=/tesseract/tessdata/ paawak/tesseract-ocr-barebones:alpine_jre-8_tess-3.05.02_v0.1
Details
This image also contains the openjdk:8u171-jre-alpine3.7. So, you can use this image as a base for your Java application.
The sources can be found here: https://github.com/paawak/porua/tree/master/tesseract-ocr-docker
Content type
Image
Digest
Size
142.3 MB
Last updated
almost 8 years ago
docker pull paawak/tesseract-ocr-barebones:alpine_jre-8_tess-4.0.0-rc2_v0.1