Download src/document/ocr/__init__.py from MHamdan/SPARKNET: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/MHamdan/SPARKNET/resolve/76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document/ocr/__init__.py
- Command line
-
hf download hf://spaces/MHamdan/SPARKNET@76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document/ocr/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/MHamdan/SPARKNET/resolve/76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document/ocr/__init__.py
530 Bytes
| """ | |
| OCR Module for Document Intelligence | |
| Provides OCR capabilities using PaddleOCR (primary) and Tesseract (fallback). | |
| Supports multiple languages and confidence scoring. | |
| """ | |
| from .base import OCREngine, OCRConfig, OCRResult | |
| from .paddle_ocr import PaddleOCREngine | |
| from .tesseract_ocr import TesseractOCREngine | |
| from .factory import get_ocr_engine, create_ocr_engine | |
| __all__ = [ | |
| "OCREngine", | |
| "OCRConfig", | |
| "OCRResult", | |
| "PaddleOCREngine", | |
| "TesseractOCREngine", | |
| "get_ocr_engine", | |
| "create_ocr_engine", | |
| ] | |