I am trying to perform tesseract osd on a file that has been rotated by an angle that is not either 90 or 180. The crux is, after rotating the image by an angle(!=90,180,270) and then rotating back by the same angle using either PIL or opencv, I am unable to perform osd because tesseract throws “too few characters” error. If I take screenshot, and perform osd on the screenshoted image osd work fine. I am wondering why tesseract isn’t able detect orientation after processing the image in python. Is there a way I can get around this issue?coderest of the code
I tried rotating the image by an angle(!=0,90,180,270) and then rotating it back using opencv and PIL libraries individually. Both times after rotating the image back tesseract osd fails to detect enough characters. I tried changing min_characters_to_try config parameter for tesseract, but that does not solve the problem.
Bhavit Sai Sunkara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.