docling-project / docling-project/docling
How to Extract Scanned Arabic Text?
- Dominant language
- Python
- Stars
- 66.4k
- Forks
- 4.8k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 98
Description
### Question
I am trying to convert a test document to Markdown. The doc has both English and Arabic (live text and clean text as image for each). Text extraction works in the standalone RapidOCR library (using params:
```
"Rec.engine_type": EngineType.ONNXRUNTIME,
"Rec.lang_type": LangRec.ARABIC, # ARABIC uses python-bidi
"Rec.model_type": ModelType.MOBILE,
"Rec.ocr_version": OCRVersion.PPOCRV5,
```
with `python-bidi` installed.
I tried from Docling (passed the .onnx path in RapidOcrOptions and patched the model -> PatchedRapidOcrModel(RapidOcrModel)) but no success.
Does Docling currently support languages other than English and Chinese?
If yes, how do I achieve that?
Here's a sample file for testing:
[docling_test_ak.pdf](https://github.com/user-attachments/files/25468728/docling_test_ak.pdf)
Contributor guide
Assessment
This issue has not been assessed yet.