'How to check percentage of an image covered by text?
Is there any way to programmatically calculate what percentage of an image is covered by text? I'm trying to do this in either node.js or python but can't seem to find anything that does this - I've found quite a few libraries that let you analyze the text and/or change the image attributes themselves (tesseract looked promising initially), but nothing gives me back an area or amount - usually just the text itself. Any ideas would be appreciated, sorry about the lack of code I've tried but can't find anything about this anywhere.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
