1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update tesseract

This commit is contained in:
kev 2022-02-16 17:17:58 +08:00
parent c78dfda337
commit 6eb55fbf39
3 changed files with 12 additions and 10 deletions

@ -2,8 +2,8 @@
# Dockerfile for tesseract CJK # Dockerfile for tesseract CJK
# #
FROM alpine FROM alpine:3
MAINTAINER kev <noreply@easypi.pro> MAINTAINER EasyPi Software Foundation
RUN set -xe \ RUN set -xe \
&& apk add --no-cache \ && apk add --no-cache \

@ -13,8 +13,8 @@ Tesseract doesn't have a built-in GUI, but there are several available from the
Quick Start Quick Start
----------- -----------
``` ```bash
$ alias tesseract='docker run --rm -v `pwd`:/data -w /data vimagick/tesseract' $ alias tesseract='docker run --rm -u $(id -u):$(id -g) -v `pwd`:/data -w /data vimagick/tesseract'
$ tesseract input.png output -l eng --psm 3 $ tesseract input.png output -l eng --psm 3
$ cat output.txt $ cat output.txt

@ -1,6 +1,8 @@
tesseract: version: "3.8"
image: vimagick/tesseract services:
command: tesseract input.png output -l eng --psm 3 tesseract:
volumes: image: vimagick/tesseract
- ./data:/data command: tesseract input.png output -l eng --psm 3
working_dir: /data volumes:
- ./data:/data
working_dir: /data