Skip to content

How to Extract Scanned Arabic Text? #3021

@abedkhooli

Description

@abedkhooli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions