ocr-tesseract-wrapper
Tiny wrapper around pytesseract with image preprocessing and OCR configurations
Requirements
- tesseract installed (https://github.com/tesseract-ocr/tesseract/wiki#installation)
Basic usage
from ocr_tesseract_wrapper import OCR
ocr_tool = OCR()
results = ocr_tool.ocr([image]) # where image is Pillow image or string image path
Advanced usage
from ocr_tesseract_wrapper import OCR
ocr_tool = OCR()
results = ocr_tool.ocr([image1, image2], config=[])
"""
where config parameter is list of additional configs and restrictions for each of the
images given to the OCR. for instance: [None, 'tessedit_char_whitelist=0123456789'] will
apply no restriction to the first but will only return numeric characters from the second image.
"""
Metadata
Release files for ocr-tesseract-wrapper 0.0.8
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 |
|---|---|---|---|---|
| ocr-tesseract-wrapper-0.0.8.tar.gz | 3.1 kB | Without provenance | Details for ocr-tesseract-wrapper-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ocr_tesseract_wrapper-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for ocr_tesseract_wrapper-0.0.8-py3-none-any.whl |
Total release size: 9.3 kB
Release files / ocr-tesseract-wrapper-0.0.8.tar.gz
| Download URL | ocr-tesseract-wrapper-0.0.8.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7fcc5d7a0f6aebcbaad18f23ef822382a177fdd94f5ae431e504fb735296b3e
|
|
BLAKE2b-256 checksum How to use checksums |
b864f30269e25963d59b180ce49bb86e179375d0d8e877416f0fb23332a10016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / ocr_tesseract_wrapper-0.0.8-py3-none-any.whl
| Download URL | ocr_tesseract_wrapper-0.0.8-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
244890a815496f9bbfdd34a6c74315197923f37dedc42927b90514ca6c97a38f
|
|
BLAKE2b-256 checksum How to use checksums |
97aee38f72b81f535c057a2f263b0f795e75504ca7aba331854ce450e32f9373
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Security for ocr-tesseract-wrapper 0.0.8
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.