EasyOCR engine for OCR Bridge
Project description
OCR Bridge - EasyOCR Engine
EasyOCR engine implementation for OCR Bridge.
Overview
This package provides an EasyOCR engine that integrates with the OCR Bridge architecture. EasyOCR is a deep learning-based OCR engine with excellent support for Asian scripts and automatic GPU acceleration.
Features
- 80+ Languages: Excellent support for Asian scripts (Chinese, Japanese, Korean, Thai, etc.)
- GPU Acceleration: Automatic GPU detection and usage with graceful CPU fallback
- Multiple Formats: JPEG, PNG, TIFF, PDF
- Deep Learning: Advanced neural network models for high accuracy
- HOCR Output: Structured XML with bounding boxes
Installation
pip install ocrbridge-easyocr
Note: This will install PyTorch and EasyOCR dependencies (~2GB).
For GPU support, install CUDA-compatible PyTorch first:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
pip install ocrbridge-easyocr
Usage
The engine is automatically discovered by OCR Bridge via entry points.
Parameters
languages(list[str]): Language codes, e.g., ["en"], ["ch_sim", "en"] (default: ["en"])text_threshold(float): Confidence threshold for text detection 0.0-1.0 (default: 0.7)link_threshold(float): Threshold for linking text regions 0.0-1.0 (default: 0.7)
Example
from pathlib import Path
from ocrbridge.engines.easyocr import EasyOCREngine, EasyOCRParams
engine = EasyOCREngine()
# Process with defaults (English)
hocr = engine.process(Path("document.pdf"))
# Process with custom parameters
params = EasyOCRParams(
languages=["ch_sim", "en"],
text_threshold=0.7,
link_threshold=0.7
)
hocr = engine.process(Path("chinese_document.pdf"), params)
GPU Support
The engine automatically detects and uses GPU if available. No configuration needed!
Version
0.1.0
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_easyocr-3.1.0.tar.gz.
File metadata
- Download URL: ocrbridge_easyocr-3.1.0.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87798b58bd830f1289d6fef4dda9b5fd74fa712504a7e923b1cd3c6b731287ba
|
|
| MD5 |
ffdb24a0452a64f8999f5442d2ec7e0d
|
|
| BLAKE2b-256 |
c11e0df67ac65ff4f27f9ec4d184a115df2f69e5286bceb11f62d48812147fc4
|
Provenance
The following attestation bundles were made for ocrbridge_easyocr-3.1.0.tar.gz:
Publisher:
release.yml on OCRBridge/ocrbridge-easyocr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocrbridge_easyocr-3.1.0.tar.gz -
Subject digest:
87798b58bd830f1289d6fef4dda9b5fd74fa712504a7e923b1cd3c6b731287ba - Sigstore transparency entry: 747136560
- Sigstore integration time:
-
Permalink:
OCRBridge/ocrbridge-easyocr@aa3feb18fc5f28ae590197bdef5f5dc331287241 -
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@aa3feb18fc5f28ae590197bdef5f5dc331287241 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ocrbridge_easyocr-3.1.0-py3-none-any.whl.
File metadata
- Download URL: ocrbridge_easyocr-3.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 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 |
ce7b54ff1a62fd128f1e8496f687da2d49542efe583063f3f8a50f565c584745
|
|
| MD5 |
bb799366ebcb37badc479173a8be70b7
|
|
| BLAKE2b-256 |
0b32ba31916fd3ad91d3e45a4bc2c26b0a8735c4601e0d3d9dfeaf5d16fdf5e8
|
Provenance
The following attestation bundles were made for ocrbridge_easyocr-3.1.0-py3-none-any.whl:
Publisher:
release.yml on OCRBridge/ocrbridge-easyocr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocrbridge_easyocr-3.1.0-py3-none-any.whl -
Subject digest:
ce7b54ff1a62fd128f1e8496f687da2d49542efe583063f3f8a50f565c584745 - Sigstore transparency entry: 747136561
- Sigstore integration time:
-
Permalink:
OCRBridge/ocrbridge-easyocr@aa3feb18fc5f28ae590197bdef5f5dc331287241 -
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@aa3feb18fc5f28ae590197bdef5f5dc331287241 -
Trigger Event:
push
-
Statement type: