EasyOCR2
Fastly Built by FastBuilder.AI 🚀
Next-generation ready-to-use OCR with 80+ supported languages and all popular writing scripts.
Installation
pip install easyocr2
Quick Start
import easyocr2
reader = easyocr2.Reader(['en'])
result = reader.readtext('image.jpg')
print(result)
Features
- 🌍 80+ Languages Support
- 🚀 GPU Acceleration (CUDA/MPS)
- 📦 Easy Installation via pip
- 🎯 High Accuracy with deep learning
- 🔧 Simple API - just 3 lines of code
Supported Languages
Latin, Chinese (Simplified & Traditional), Japanese, Korean, Thai, Arabic, Cyrillic, Devanagari, and many more!
See full list at: https://github.com/cyberiums/EasyOCR
Advanced Usage
import easyocr2
reader = easyocr2.Reader(['en'], gpu=True)
reader = easyocr2.Reader(['en'], gpu=False)
reader = easyocr2.Reader(['en', 'ch_sim', 'ja'])
result = reader.readtext('image.jpg', detail=1)
for bbox, text, confidence in result:
print(f"Text: {text}, Confidence: {confidence:.2f}")
Integration with RustOCR
EasyOCR2 works seamlessly with RustOCR CLI for high-performance batch processing:
pip install easyocr2
rustocr --server
rustocr -i image.jpg --use-server
Requirements
- Python >= 3.7
- PyTorch >= 1.6
License
Apache-2.0
Credits