How to check if image contains text or not?
We can use pytesseract for this application by thresholding the image and passing it to tesseract. However if you have a .html file that represents text of image, you can use beautifulsoup for extracting text from it and check if it is empty.Still this is a round way approach.
Given any image of a scanned document, I want to check if it's not empty page.
I know I can send it to AWS Textract - but it will cost money for nothing.
I know I can use pytesseract but maybe there is more elegant and simple solution?
Or given a .html file that represents the text of the image - how to check it shows a blank page?