Skip to content

surya_ocr cannot handle tatweel characters properly #386

@ragaeeb

Description

@ragaeeb

Re-opening a related issue from here: #359

Now the previous bug is fixed, but it still is not accurate. Here are the results of performing surya_ocr on the attached image:

      "text_lines": [
        {
          "text": "ردمشا مشسة الحيساة",
          "bbox": [
            796.0,
            227.0,
            1191.0,
            278.0
          ]
        },
        {
          "text": "بشسسسسسانهالخبرين بخسبيه تتطلق",
          "bbox": [
            1068.0,
            312.0,
            1602.0,
            368.0
          ]
        },
        {
          "text": "ومِن حناياه هذا النسسسسسوس والألقُ",
          "bbox": [
            405.0,
            311.0,
            931.0,
            368.0
          ]
        },
        {
          "text": "يُطلُّمنها مربيعٌ ضـــــــــــــــاحكْ عَبِقُ",
          "bbox": [
            405.0,
            397.0,
            938.0,
            466.0
          ]
        },
        {
          "text": "ومِن جَنَاه الريسسســــأضُ الحُضَرُوا مرفة",
          "bbox": [
            1074.0,
            402.0,
            1603.0,
            462.0
          ]
        },
        {
          "text": "والڪون بعصف يےأمرجــــــانه القلقُ",
          "bbox": [
            412.0,
            499.0,
            929.0,
            558.0
          ]
        },
        {
          "text": "أتىإلى النسسساس والظلماء عاكفة",
          "bbox": [
            1083.0,
            501.0,
            1602.0,
            555.0
          ]
        },
        {
          "text": "والأبرض حيرى فلاتلقى بسسسساحتها",
          "bbox": [
            1067.0,
            591.0,
            1603.0,
            652.0
          ]
        },
        {
          "text": "إلاالذين ظلام الليل قد عشـــــــــــــقوا",
          "bbox": [
            404.0,
            594.0,
            935.0,
            657.0
          ]
        }
]

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions