1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update tesseract

This commit is contained in:
kev 2019-12-07 13:15:29 +08:00
parent e0327b03be
commit 190d285681
5 changed files with 13 additions and 1 deletions

View File

@ -16,4 +16,4 @@ RUN set -xe \
&& tesseract --list-langs
ENTRYPOINT ["tesseract"]
CMD ["--help"]
CMD ["--help-extra"]

View File

@ -15,8 +15,14 @@ Quick Start
```
$ alias tesseract='docker run --rm -v `pwd`:/data -w /data vimagick/tesseract'
$ tesseract input.png output -l eng --psm 3
$ cat output.txt
The (quick) [brown] {fox} jumps!
$ tesseract chinese.jpg chinese -l chi_tra --psm 8 --oem 0
$ cat chinese.txt
學習
```
[1]: https://github.com/tesseract-ocr/tesseract

BIN
tesseract/data/chinese.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
tesseract/data/input.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,6 @@
tesseract:
image: vimagick/tesseract
command: tesseract input.png output -l eng --psm 3
volumes:
- ./data:/data
working_dir: /data