mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update tesseract
This commit is contained in:
parent
e0327b03be
commit
190d285681
@ -16,4 +16,4 @@ RUN set -xe \
|
||||
&& tesseract --list-langs
|
||||
|
||||
ENTRYPOINT ["tesseract"]
|
||||
CMD ["--help"]
|
||||
CMD ["--help-extra"]
|
||||
|
@ -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
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
BIN
tesseract/data/input.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
6
tesseract/docker-compose.yml
Normal file
6
tesseract/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
tesseract:
|
||||
image: vimagick/tesseract
|
||||
command: tesseract input.png output -l eng --psm 3
|
||||
volumes:
|
||||
- ./data:/data
|
||||
working_dir: /data
|
Loading…
Reference in New Issue
Block a user