Is it possible to get the angle of rotation of the text area via PaddleOCR? #13264
-
PaddleOCR can correctly recognize 90, 180 and even 270 degree rotated text in a mode use_angle_cls=True, but it doesnt provide any information about the angle of rotation in a result.As a result, area with a text, cropped by provided coordinates usually has incorrect orientation.Can i get the information about the angle of rotation of the text area somehow to get correctly orientated area witht text ? |
Beta Was this translation helpful? Give feedback.
Answered by
UserWangZz
Jul 5, 2024
Replies: 1 comment 8 replies
-
Specifically you need to look at the original code to determine the output of the classification model. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can see this part code in paddleocr.py, if you use paddleocr api. About 755 line, use a classifier model to det the det model's result. and then you can find second part code in tools/infer/predict_cls.py. Here use cls model to rectify det box.
PaddleOCR/paddleocr.py
Lines 725 to 762 in 7a3c580