mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
28 lines
691 B
Markdown
28 lines
691 B
Markdown
tesseract
|
|
=========
|
|
|
|
![](https://badge.imagelayers.io/vimagick/tesseract:latest.svg)
|
|
|
|
[Tesseract][1] is an Open Source OCR engine, available under the Apache 2.0
|
|
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
|
|
-----------
|
|
|
|
```
|
|
$ 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 stdout -l chi_tra --psm 8 --oem 0
|
|
學習
|
|
```
|
|
|
|
[1]: https://github.com/tesseract-ocr/tesseract
|