ArchiveorgSoftwarePython tool for grabbing text via screenshot This tool gives users the ability to take a screenshot and copy to the clipboard the text content of the screenshot.UseRunning will open an overlay over the screen, where a rectangle can be drawn over the portion of the screen containing the text the user wishes to copy.An optional command line argument can specify the language. For example, python eng+fra will use English as the primary language and French as the secondary language. The default is eng (English). Make sure that the appropriate data files for Tesseract are installed for other languages.It is recommended to attach a global hotkey to this tool.On Windows, one can accomplish this by using an AutoHotkey[1] script; textshot.ahk contains a sample AHK script that can be used. On Ubuntu, open the Keyboard Settings, which shows you all the Gnome shortcuts. At the bottom there is a + button to add your own shortcuts. Click it and set the command to /usr/bin/python3 . In case you are using a venv, the python3 path above should point to the venv's python3 instead of the global python3.InstallationInstall Python 3[2]Clone this repository, and cd into it(Optional) Create a virtual environment, for example with python -m venv .venvInstall the required packages with pip install -r requirements.txtInstall Google's Tesseract OCR Engine[3], and ensure that tesseract can be reached from the command line by adding the directory to your system path.To restore the repository download the bundle wget and run: git clone ianzhao05-textshot_-_2020-05-23_23-15-25.bundle Source:[4]Uploader: ianzhao05[5]Upload date: 2020-05-23 References^ AutoHotkey (^ Python 3 (^ Google's Tesseract OCR Engine (^ (^ ianzhao05 (

weiterlesen: RSS Quelle öffnen