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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ocr-tesseract-wrapper-0.0.6.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocr_tesseract_wrapper-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / ocr-tesseract-wrapper-0.0.6.tar.gz
| Download URL | ocr-tesseract-wrapper-0.0.6.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23d2ff156a183db2711cf3c3256ddbedbd31994397e10ff8230fdf95903c0bff
|
|
BLAKE2b-256 checksum How to use checksums |
88db2d24c59ae6e99d1eb0dfa3829f9a363cc5fb67383a922996305ca5c44154
|
| 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/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5
|
Release files / ocr_tesseract_wrapper-0.0.6-py3-none-any.whl
| Download URL | ocr_tesseract_wrapper-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9f7becf98d89e7f2bc2446d6f6b83f044a28fc17827005bdcb4267d78f91230
|
|
BLAKE2b-256 checksum How to use checksums |
f6aa7f01d2d3fda4aef53cdf0e36e2eda666300f6747ed653da0269c61f4ab77
|
| 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/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5
|