You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When processing inverted text using PaddleOCR, the OCR engine successfully detects the correct text content (because angle cls is enabled). However, the order of the character-level bounding boxes remains inconsistent with the orientation of the original input text.
For instance:
When the text is inverted (right-to-left in the image), PaddleOCR correctly detects the text as left-to-right in content. However, the character bounding boxes should follow the original right-to-left order of the inverted input.
Conversely, when text is naturally written left-to-right, the bounding boxes are ordered correctly.
This creates confusion when the bounding box coordinates are used for downstream processing or analysis.
Steps to Reproduce
Input an image containing inverted text (right-to-left visually but left-to-right in logical content).
Use PaddleOCR to extract character-level bounding boxes and text content.
Observe the order of the bounding boxes:
The text content is correctly detected as left-to-right.
However, the character bounding boxes do not match the original input's visual (right-to-left) orientation.
Expected Behavior
For inverted text:
The character-level bounding boxes should follow the original orientation of the text in the input image (right-to-left).
The logical text content can still be left-to-right, as detected.
Actual Behavior
The bounding boxes are incorrectly ordered as left-to-right, regardless of the input text orientation.
Example Data
Input 1:
Original text is inverted (right-to-left).
Bounding box coordinates:
[[[249, 369], [263, 368], [263, 394], [249, 395]],
[[267, 368], [283, 367], [283, 393], [267, 394]],
...
]
Detected content: left-to-right (correct).
Bounding box order: left-to-right (incorrect, should match the input's right-to-left orientation).
Description
When processing inverted text using PaddleOCR, the OCR engine successfully detects the correct text content (because angle cls is enabled). However, the order of the character-level bounding boxes remains inconsistent with the orientation of the original input text.
For instance:
When the text is inverted (right-to-left in the image), PaddleOCR correctly detects the text as left-to-right in content. However, the character bounding boxes should follow the original right-to-left order of the inverted input.
Conversely, when text is naturally written left-to-right, the bounding boxes are ordered correctly.
This creates confusion when the bounding box coordinates are used for downstream processing or analysis.
Steps to Reproduce
Expected Behavior
For inverted text:
Actual Behavior
Example Data
Input 1:
Input 2:
The text was updated successfully, but these errors were encountered: