Tesseract C-API in python, a faster alternative to pytesseract
Project description
pytesseract-api
Tesseract C-API in python, a faster alternative to pytesseract
Installation
You can install the package via pip:
pip install pytesseract-api
Usage
import cv2
from pytesseract_api import image_to_string
from pytesseract_api.api import set_variable
img = cv2.imread("sample.png")
text = image_to_string(img)
print(text)
img = cv2.imread("digits.png")
set_variable("tessedit_char_whitelist", "0123456789")
text = image_to_string(img)
set_variable("tessedit_char_whitelist", "") # reset
Limitations
- Only supports opencv images as input as of now
License
This project is licensed under the terms of the MIT license.
Contact
If you want to contact me you can reach me at pradishbijukchhe@gmail.com.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytesseract_api-1.0.4.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file pytesseract_api-1.0.4.tar.gz
.
File metadata
- Download URL: pytesseract_api-1.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 351afe0ea73d9a559319eff99bef17e247ffcc56bfb98c6962e512cd0894c88a |
|
MD5 | 5538119519c67279a3520fdd5e482340 |
|
BLAKE2b-256 | a248e1d2f6160dd9a784235486f7414ca0131eb0c98db31ddf3cce001a643693 |
File details
Details for the file pytesseract_api-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pytesseract_api-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0ad92a10f48b62d960814633e522c6904ca3aed06bd2f29e78bc4ac600fbe6 |
|
MD5 | 77f04535f6d0ce7997189e912e1cce9a |
|
BLAKE2b-256 | 6473cf8e1af98e8ff7141ece6358aa7c46a77666bdcaaa2e44501338562870e9 |