1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-20 04:59:27 +02:00

28 lines
691 B
Markdown
Raw Normal View History

2015-07-16 22:24:25 +08:00
tesseract
=========
![](https://badge.imagelayers.io/vimagick/tesseract:latest.svg)
2016-01-30 00:36:47 +08:00
[Tesseract][1] is an Open Source OCR engine, available under the Apache 2.0
2015-07-16 22:24:25 +08:00
license. It can be used directly, or (for programmers) using an API. It
supports a wide variety of languages.
Tesseract doesn't have a built-in GUI, but there are several available from the
3rdParty page.
Quick Start
-----------
```
2019-12-07 13:00:54 +08:00
$ alias tesseract='docker run --rm -v `pwd`:/data -w /data vimagick/tesseract'
2019-12-07 13:15:29 +08:00
2019-12-07 13:00:54 +08:00
$ tesseract input.png output -l eng --psm 3
$ cat output.txt
2019-12-07 13:15:29 +08:00
The (quick) [brown] {fox} jumps!
2019-12-09 08:33:02 +08:00
$ tesseract chinese.jpg stdout -l chi_tra --psm 8 --oem 0
2019-12-07 13:15:29 +08:00
學習
2015-07-16 22:24:25 +08:00
```
2016-01-30 00:36:47 +08:00
[1]: https://github.com/tesseract-ocr/tesseract