Tesseract OCR engine for OCR Bridge
Project description
OCR Bridge - Tesseract Engine
Tesseract OCR engine implementation for OCR Bridge.
Overview
This package provides a Tesseract OCR engine that integrates with the OCR Bridge architecture. Tesseract is a popular open-source OCR engine developed by Google.
Features
- Multiple Formats: JPEG, PNG, TIFF, PDF
- Multi-page PDFs: Automatic page splitting and merging
- Language Support: 100+ languages via Tesseract language packs
- Configurable: PSM, OEM, and DPI settings
- HOCR Output: Structured XML with bounding boxes
Installation
pip install ocrbridge-tesseract
Note: Tesseract binary must be installed separately:
# Ubuntu/Debian
apt-get install tesseract-ocr tesseract-ocr-eng
# macOS
brew install tesseract
# Windows
# Download from: https://github.com/UB-Mannheim/tesseract/wiki
Usage
The engine is automatically discovered by OCR Bridge via entry points.
Parameters
lang(str): Language code(s), e.g., "eng", "eng+fra" (default: "eng")psm(int): Page segmentation mode 0-13 (default: 3)oem(int): OCR engine mode 0-3 (default: 1)dpi(int): DPI for PDF conversion, 70-2400 (default: 300)
Example
from pathlib import Path
from ocrbridge.engines.tesseract import TesseractEngine, TesseractParams
engine = TesseractEngine()
# Process with defaults
hocr = engine.process(Path("document.pdf"))
# Process with custom parameters
params = TesseractParams(
lang="eng+fra",
psm=6,
oem=1,
dpi=300
)
hocr = engine.process(Path("document.pdf"), params)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ocrbridge_tesseract-3.0.0.tar.gz.
File metadata
- Download URL: ocrbridge_tesseract-3.0.0.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d61770f7d1f2c7538ae9db98970f119ea90aa02643cde42d57644b06b4ad0e8c
|
|
| MD5 |
3743b740c2a3800958736e71f62dd2fc
|
|
| BLAKE2b-256 |
5ee83fbe6ee550109506d7ec19d3ff2fe76462985c7f234c995515e3063a7de5
|
Provenance
The following attestation bundles were made for ocrbridge_tesseract-3.0.0.tar.gz:
Publisher:
release.yml on OCRBridge/ocrbridge-tesseract
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocrbridge_tesseract-3.0.0.tar.gz -
Subject digest:
d61770f7d1f2c7538ae9db98970f119ea90aa02643cde42d57644b06b4ad0e8c - Sigstore transparency entry: 742806033
- Sigstore integration time:
-
Permalink:
OCRBridge/ocrbridge-tesseract@08ef14dbf96c45273d10cd0dde3d2af97e1df9e9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OCRBridge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@08ef14dbf96c45273d10cd0dde3d2af97e1df9e9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ocrbridge_tesseract-3.0.0-py3-none-any.whl.
File metadata
- Download URL: ocrbridge_tesseract-3.0.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a73f178439952909f1ee40afe8776e8d5715b63d5eaee8a8b4141f804c356c2
|
|
| MD5 |
291dca342a45c19bdb3779dea7ed7c25
|
|
| BLAKE2b-256 |
5148b59a8d104f2ef53acad06ba02576b3c91b9d9d32f157ee9460631ce65664
|
Provenance
The following attestation bundles were made for ocrbridge_tesseract-3.0.0-py3-none-any.whl:
Publisher:
release.yml on OCRBridge/ocrbridge-tesseract
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocrbridge_tesseract-3.0.0-py3-none-any.whl -
Subject digest:
8a73f178439952909f1ee40afe8776e8d5715b63d5eaee8a8b4141f804c356c2 - Sigstore transparency entry: 742806047
- Sigstore integration time:
-
Permalink:
OCRBridge/ocrbridge-tesseract@08ef14dbf96c45273d10cd0dde3d2af97e1df9e9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OCRBridge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@08ef14dbf96c45273d10cd0dde3d2af97e1df9e9 -
Trigger Event:
push
-
Statement type: