This tool gives users the ability to take a screenshot and copy to the clipboard the text content of the screenshot. Works on Windows, macOS, and most modern Linux distros.

Source: ianzhao05/textshot: Python tool for grabbing text via screenshot