Judge the angle when the number of rows and columns is fixed

Hi, I am trying to judge the angle when the number of rows and columns is fixed. The angle is within the range of 0,90,180,270.
This is the test picture:
test
thanks!

Text recognition done horizontally is an old thing. You could rotate the image into those angles and try to recognize the numbers. The angle is where you get most hits.

Thanks for your suggestion.It could get the angle.But I still try to find some methods that can only use image processing instead of text recognition.Are there other approaches that could be used?

logically impossible.

text has no inherent low level features that allow you to tell which way is up. you have to recognize individual glyphs to know, and when you do that, that is already rudimentary OCR.

at best, you could tell if text is sideways, assuming that glyphs in their proper orientation are tall rather than wide. you could not tell if text was upside down from that.

You’re right. I’m sorry that I didn’t express this clearly.

Some information that I have not described clearly include:

  1. The image has 3 rows and 6 columns
  2. The last row has 1 column

I’m trying to use projection method to judge the angle based on these information.
this is what I get:
hProjection2
vProjection

I’m trying to do the next analysis. Is there some idea?