Library for processing screen contents using OCR
screen-ocr package makes it easy to perform OCR on portions of the screen.
Choose one of the following backends and follow the steps. WinRT is recommended for Windows and Tesseract for all other platforms.
WinRT is a Windows-only backend that is very fast and reasonably accurate. It requires Python 3.7 or later. To install screen-ocr with WinRT support, run
pip install screen-ocr[winrt]
Tesseract is a cross-platform backend that is much slower and slightly less accurate than WinRT. To install screen-ocr with Tesseract support:
- Install Tesseract binaries. For Windows, see https://github.com/UB-Mannheim/tesseract/wiki.
- pip install screen-ocr[tesseract]
EasyOCR is a very accurate but slow backend and only runs on Python 64-bit, and hence is considered experimental. To install screen-ocr with WinRT support, run
pip install screen-ocr[easyocr]
You can do a simple test by running
python -m screen_ocr to OCR the current screen contents. See
__main__.py for the code.
If using Tesseract with a custom installation directory on Windows, set
tesseract_command paths appropriately when
See also gaze-ocr for more a more involved usage example (note: there is no
import screen_ocr because ocr_reader is an injected instance of
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size screen_ocr-0.2.0-py2.py3-none-any.whl (13.6 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size screen-ocr-0.2.0.tar.gz (8.9 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for screen_ocr-0.2.0-py2.py3-none-any.whl