Add Russian + Arabic OCR support (tur+eng+rus+ara)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2
setup.py
2
setup.py
@@ -345,7 +345,7 @@ def is_scanned_pdf(file_path):
|
||||
return False
|
||||
|
||||
|
||||
def ocr_pdf(file_path, language="tur+eng", dpi=200):
|
||||
def ocr_pdf(file_path, language="tur+eng+rus+ara", dpi=200):
|
||||
"""OCR a scanned PDF in-place. Returns True on success."""
|
||||
import tempfile
|
||||
tmp_fd, tmp_path = tempfile.mkstemp(suffix=".pdf", dir=file_path.parent)
|
||||
|
||||
Reference in New Issue
Block a user