> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upsonic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# EasyOCR

> Ready-to-use OCR with 80+ supported languages using deep learning models

## What is EasyOCR?

Ready-to-use OCR with 80+ supported languages using deep learning models. Best for multi-language support with high accuracy.

## Usage

```python theme={null}
from upsonic.ocr import OCR
from upsonic.ocr.layer_1.engines import EasyOCREngine
# Also available: from upsonic.ocr import EasyOCREngine

# Create engine instance
engine = EasyOCREngine(languages=['en'], gpu=True, rotation_fix=True)

# Create OCR orchestrator
ocr = OCR(layer_1_ocr_engine=engine)

# Extract text
text = ocr.get_text('document.pdf')
print(text)

# Get detailed results
result = ocr.process_file('image.png')
print(f"Confidence: {result.confidence:.2%}")
for block in result.blocks:
    print(f"Text: {block.text}, Confidence: {block.confidence:.2%}")
```

## Parameters

| Parameter | Type | Default | Description |
| - | - | - | - |
| `languages` | List\[str] | `['en']` | List of language codes to detect |
| `gpu` | bool | `False` | Enable GPU acceleration for faster processing |
| `rotation_fix` | bool | `False` | Auto-detect and fix image rotation |
| `enhance_contrast` | bool | `False` | Enhance image contrast |
| `remove_noise` | bool | `False` | Apply noise reduction |
| `confidence_threshold` | float | `0.0` | Minimum confidence for text blocks |
| `paragraph` | bool | `False` | Group text into paragraphs |
| `min_size` | int | `10` | Minimum text region size |
| `text_threshold` | float | `0.7` | Text detection threshold |

## Supported Languages

EasyOCR supports 80+ languages. You can find the full list of supported languages in the [EasyOCR repository](https://github.com/JaidedAI/EasyOCR).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.