Skip to main content

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

ocrbridge_easyocr-3.0.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocrbridge_easyocr-3.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file ocrbridge_easyocr-3.0.0.tar.gz.

File metadata

  • Download URL: ocrbridge_easyocr-3.0.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ocrbridge_easyocr-3.0.0.tar.gz
Algorithm Hash digest
SHA256 cb2b15b8dbe1683778cba16e62999e6abc02eab2d1d611ea4983ab15c7796c35
MD5 3473835fe65fcdb9cadb6746def01728
BLAKE2b-256 ecdcd8660e4e331f590c3db1b0aa7d289d9bc766bd98a176ec22678d39981d63

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocrbridge_easyocr-3.0.0.tar.gz:

Publisher: release.yml on OCRBridge/ocrbridge-easyocr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ocrbridge_easyocr-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ocrbridge_easyocr-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ba49ad40a7af3067ea86e69dad5a1448f3b7b2b3097e82571c25bbb65add2cc
MD5 4c4f3b89dca5ba8bb746e0eb2452e962
BLAKE2b-256 2ff7be1e83281e772cc8e9e627c5f21803adc18db2552fc0d1d3d01af4fc4c82

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocrbridge_easyocr-3.0.0-py3-none-any.whl:

Publisher: release.yml on OCRBridge/ocrbridge-easyocr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page