Skip to content

Select a screen rectangular region with some text, pass it to OCR and then the text appears in the clipboard by magic.

Notifications You must be signed in to change notification settings

luke-gto/screenshot_OCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Screenshot to clipboard

Next-gen Copy-Paste

This tiny script can take as input a rectangular region of the screen that contains some text and then copies it to the clipboard.

First installation

  1. Install the dependecies listed in the requirements.txt file:

pip install -r requirements.txt

  1. Download a tesseract trained model and place it in the same directory of the script.

  2. Enjoy

The script is more useful if you can launch it through a shortcut.

Usage

  • You can select the region with two mouse clicks: the first in the top left corner and the second in the lower right one.
  • Ctrl-V should paste the text after the OCR did its work.

!!! It's only been tested on Linux with X11. !!!

About

Select a screen rectangular region with some text, pass it to OCR and then the text appears in the clipboard by magic.

Topics

Resources

Stars

Watchers

Forks

Languages