pytesseract-cli
A command-line wrapper for pytesseract, a Python wrapper for tesseract.
Description
This is a command-line wrapper to enable easier usage of the Tesseract OCR engine with multiple files and/or directories. The project itself is written in Python, and uses pytesseract for interaction with tesseract.
Benefits of this interface include the ability to easily parse multiple images and files, as well as recurse upon directories.
Requirements
Basic requirements are an up-to-date installation of Python 3 and Tesseract OCR.
Tesseract
Both the Tesseract OCR engine as well as any training data for desired languages must be installed.
Both of the above are available, for example, on the ArchLinux User Repository:
tesseracttesseract-data
Installation
This project is available on PyPI under the page pytesseract-cli.
Using pip:
pip install pytesseract-cli
to upgrade:
pip install -U pytesseract-cli
Usage
In a terminal:
$ pytesseract-cli
usage: pytesseract-cli [-h] [-f [FILES ...]] [-d [DIRECTORIES ...]] [-r] [-t {pdf,txt}] [-l LANG] [--list-languages]
optional arguments:
-h, --help show this help message and exit
-f [FILES ...] name(s) of file(s) to process
-d [DIRECTORIES ...] directory(s) to process
-r recurse on all directories listed
-t {pdf,txt} desired output filetype
-l LANG language of the text in any image(s)
--list-languages list all languages available
Acknowledgements
- pytesseract for providing an easy-to-use wrapper for
tesseract. - tesseract for providing a free and open-source OCR engine.
Metadata
Release files for pytesseract-cli 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytesseract-cli-1.2.0.tar.gz | 3.7 kB | Without provenance | Details for pytesseract-cli-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytesseract_cli-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for pytesseract_cli-1.2.0-py3-none-any.whl |
Total release size: 7.7 kB
Release files / pytesseract-cli-1.2.0.tar.gz
| Download URL | pytesseract-cli-1.2.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c657e2b42a8f5023a7d4df1f23c5e7a9cb318c5e6141f7d7b5ca468845b83082
|
|
BLAKE2b-256 checksum How to use checksums |
61d99de4b4f663a1dc9d0ceeff4ef95a5fe88430a298eba9fd53d9f921207114
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Release files / pytesseract_cli-1.2.0-py3-none-any.whl
| Download URL | pytesseract_cli-1.2.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
791345458b1330c52c4eaac197d6298f325d90b8bac0d9f152935d1bb1d94296
|
|
BLAKE2b-256 checksum How to use checksums |
59f96c484a83ddaaf5652d7be56fd8558686489e90ebd97e338171dc1addebc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Security for pytesseract-cli 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.