0

Image of portrait page viewed horizontally

Hello suppose we have this photo of a page(or many pages) , you rotate if 90,180 degree anticlockwise

I want to write code in order to detect the position of the page number to find out the orientation of the page and rotate the photo to have the right orientation. Please help me. Thanks

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
  • 1
    Please add any code attempt that you have written so far to your question. – Rachel Gallen Oct 09 '22 at 10:44
  • Also search.. there's other SO questions on this subject on the site, have you tried any of the solutions? https://stackoverflow.com/questions/58010660/detect-image-orientation-angle-based-on-text-direction https://stackoverflow.com/questions/56854176/is-there-a-way-i-can-detect-the-image-orientation-and-rotate-the-image-to-the-ri https://automaticaddison.com/how-to-determine-the-orientation-of-an-object-using-opencv/ (These are only a few) – Rachel Gallen Oct 09 '22 at 10:51
  • Try each of the four 90 degree rotations and see which one pytesseract will read – fmw42 Oct 09 '22 at 15:26
  • Hello Rachel Gallen ,thank you for your suggetions. Yes I alrady seen those answers,I think those solutions works if the document is a scaned photo ,but with my files dosen't work because tessract can something if the page is up-side down .Anway right now I don't find my files because ,it's been long time since the first time I work to some this problem. – Kebab Sharif Oct 09 '22 at 18:32

0 Answers0