I've an image with some horizontal and vertical text. And I'm detecting text using tesseract OCR. And here is the array tesseract returns
'text': ['', '', '', '', 'Some', 'other', 'text', 'horizontal', '', '', '', 'JEDIY9A', ']xO]', 'WOPUeI', 'BWOS', 'SI', 'SIUL']
As you can see it only detect horizontal text correctly. So is there a way to force tesseract to detect only horizontal text? So later I will rotate the image by 90 and again pass image to detect vertical text(which is now horizontal).
Or is there a simple solution?
