How to get rotate angle #961
-
I have a rotated image. With the "db_resnet50_rotation" model, I can successfully find the text in the image. How can I find how many degrees the image or text box is rotated? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @zaferguler87 👋 Interesting question! Let's try to give you all the relevant information:
That's it for the detection part, if you use the full I hope this helps! If you want us to help you, could you share a minimal runnable code snippet to show how you use your model currently? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your inspiring comments. You can find the basic code block below.
After changing the In addition, the points for each word come in clockwise order. Therefore, with a little analytical geometry, the rotation angle can be obtained for each box. Considering the mean or median values in all box angles, the rotate angle of the image can be computed approximately. |
Beta Was this translation helpful? Give feedback.
Thanks for your inspiring comments.
You can find the basic code block below.
After changing the
export_as_straight_boxes
variable toFalse
I noticed that in my case each word is represented as a 4-point polygon as seen below.In addition, the points for each word come in clockwise order. Therefore, with a little an…