Skip to main content

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.

Metadata

Release files for pytesseract-api 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytesseract-api 1.0.4
File Size Uploaded Provenance
pytesseract_api-1.0.4.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytesseract-api 1.0.4
File Interpreter ABI Platform
pytesseract_api-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / pytesseract_api-1.0.4.tar.gz

Download URL pytesseract_api-1.0.4.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
351afe0ea73d9a559319eff99bef17e247ffcc56bfb98c6962e512cd0894c88a
BLAKE2b-256 checksum
How to use checksums
a248e1d2f6160dd9a784235486f7414ca0131eb0c98db31ddf3cce001a643693
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / pytesseract_api-1.0.4-py3-none-any.whl

Download URL pytesseract_api-1.0.4-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b0ad92a10f48b62d960814633e522c6904ca3aed06bd2f29e78bc4ac600fbe6
BLAKE2b-256 checksum
How to use checksums
6473cf8e1af98e8ff7141ece6358aa7c46a77666bdcaaa2e44501338562870e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for pytesseract-api 1.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page