pytextractor
python ocr using tesseract with EAST opencv text detector
Uses the EAST opencv detector with pytesseract to extract text(default) or numbers from images.
Usage main
usage: text_detector [-h] [--east EAST] [-c CONFIDENCE] [-w WIDTH] [-e HEIGHT] [-d] [-n] [-p PERCENTAGE]
[-b MIN_BOXES] [-i MAX_ITERATIONS]
images [images ...]
Text/Number extractor from image
positional arguments:
images path(s) to input image(s)
options:
-h, --help show this help message and exit
--east EAST path to input EAST text detector
-c CONFIDENCE, --confidence CONFIDENCE
minimum probability required to inspect a region
-w WIDTH, --width WIDTH
resized image width (should be multiple of 32)
-e HEIGHT, --height HEIGHT
resized image height (should be multiple of 32)
-d, --display Display bounding boxes
-n, --numbers Detect only numbers
-p PERCENTAGE, --percentage PERCENTAGE
Expand/shrink detected bound box
-b MIN_BOXES, --min-boxes MIN_BOXES
minimum number of detected boxes to return
-i MAX_ITERATIONS, --max-iterations MAX_ITERATIONS
Installation & usage
brew install tesseract
uv add pytextractor
text_detector
Usage lib
from pytextractor import pytextractor
extractor = pytextractor.PyTextractor()
Running tests
brew install tesseract
uv run pytest
Development setup
brew install tesseract
uv sync
uv run pytest
Metadata
Release files for pytextractor 2.2.3
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 | |
|---|---|---|---|---|
| pytextractor-2.2.3.tar.gz | 90.6 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytextractor-2.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 180.4 MB
Release files / pytextractor-2.2.3.tar.gz
| Download URL | pytextractor-2.2.3.tar.gz |
|---|---|
| Size | 90.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acc48ba54a0ffbfdfba0652cfb5a0ca484a865ee7d56cd515f02d05a4568290c
|
|
BLAKE2b-256 checksum How to use checksums |
d356a8fe1d937575c40201ac2a352676713c5e57d6976e3163b52fa1aef9a619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pytextractor-2.2.3-py3-none-any.whl
| Download URL | pytextractor-2.2.3-py3-none-any.whl |
|---|---|
| Size | 89.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ea4b45f0358aac71117cd79ee5db3607f038783fa393717d12b4020f0a59105
|
|
BLAKE2b-256 checksum How to use checksums |
7b26fd06dedc914e8c2d1008ce8c98fa22ffad05a7399242c03b6d9e81d0ec14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for pytextractor 2.2.3
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.