Tiny wrapper around pytesseract with image preprocessing and OCR configurations
Project description
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. """
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size ocr_tesseract_wrapper-0.0.8-py3-none-any.whl (6.2 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size ocr-tesseract-wrapper-0.0.8.tar.gz (3.1 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for ocr_tesseract_wrapper-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 244890a815496f9bbfdd34a6c74315197923f37dedc42927b90514ca6c97a38f |
|
MD5 | 8ff2edfc54ea959635d8d56752b16dab |
|
BLAKE2-256 | 97aee38f72b81f535c057a2f263b0f795e75504ca7aba331854ce450e32f9373 |
Close
Hashes for ocr-tesseract-wrapper-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7fcc5d7a0f6aebcbaad18f23ef822382a177fdd94f5ae431e504fb735296b3e |
|
MD5 | 913f8dd7e444b9299389bd1e7a14a1f7 |
|
BLAKE2-256 | b864f30269e25963d59b180ce49bb86e179375d0d8e877416f0fb23332a10016 |