Skip to content

[Bug] Incorrect text angle detection & OCR runtime error when Enable180Classification is True #174

@SwaggyMacro

Description

@SwaggyMacro

Description

The OCR engine fails to correctly identify the orientation of the text. 0° text is detected as 90°, or the detection angle is completely wrong, leading to poor recognition results. May duplicated with #170 .
(文字角度检测失败。旋转的文本(如90度或180度)被错误识别为0度,或者识别出的角度完全错误,导致最终识别结果乱码。 可能与 #170 是同一个问题)

Image Image

And the second issue, When I set Enable180Classification as True, Then
(然后第二个问题是,当我设置 Enable180Classification 为 True,就会有报错,看起来是输入的维度或者尺寸不对)
Image

Image

Environment

  • Windows 11 25H2
  • Mkldnn
  • .NET 10
  • Avalonia 11.3
  • PaddleSharp v3.0.1

Steps to reproduce the bug

The first issue:

  • Just call engine.Run();.

The second issue:

  • Set Enable180Classification as True.

Expected behavior

No response

Screenshots

No response

Release version

v3.0.1

IDE

Rider 25.3.1

OS version

Windows 11 25H2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions