Library for processing screen contents using OCR
Project description
Screen OCR
The screen-ocr
package makes it easy to perform OCR on portions of the screen.
Installation
Choose one of the following backends and follow the steps. WinRT is recommended for Windows and Tesseract for all other platforms.
WinRT
WinRT is a Windows-only backend that is very fast and reasonably accurate. To install screen-ocr with WinRT support, run pip install screen-ocr[winrt]
Tesseract
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
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]
Usage
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_data_path
and tesseract_command
paths appropriately when
constructing a Reader
instance.
See also gaze-ocr for more a more involved usage example.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for screen_ocr-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9eff54b4d6fdb1ca9217e9dbf41b1e6668b5fa0402ba5abf3cf486e7e33e739 |
|
MD5 | 7270b632627d40fa76b221dac1e3e94b |
|
BLAKE2b-256 | bc8b752c9a9137eb7252fa72e875fc9d2b583f78b127bd64aa7533d180a71b7d |