Skip to main content

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. It requires Python 3.7, 3.8, or 3.9 (the winrt package is not yet available for 3.10+). 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:

  1. Install Tesseract binaries. For Windows, see https://github.com/UB-Mannheim/tesseract/wiki.
  2. 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

screen-ocr-0.4.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

screen_ocr-0.4.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file screen-ocr-0.4.0.tar.gz.

File metadata

  • Download URL: screen-ocr-0.4.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for screen-ocr-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7e0d90f3f402d66699764ac13163013d1c1ab7fd7dbc96b5f31a9abfa80197e0
MD5 8ea0a67465f3818c7326dfe788932ad5
BLAKE2b-256 acbe9d0bba6f76e20b5dc9f454e91404a834a529ced353574e82e4673ce58f89

See more details on using hashes here.

File details

Details for the file screen_ocr-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: screen_ocr-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for screen_ocr-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91d4a1dc76f814370e533eb89f7dbc85698cf49695b36598cc10ecea475f8b9e
MD5 9688809951edb0a16d5f696efd40ebd6
BLAKE2b-256 4ebbb06513eeca39737339ab53766192227091264911b245708654e0808e376b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page