Skip to main content

Library for processing screen contents using OCR

Project description

Screen OCR

PyPI Changelog Tests License

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:

  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.7.0.tar.gz (83.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

screen_ocr-0.7.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file screen_ocr-0.7.0.tar.gz.

File metadata

  • Download URL: screen_ocr-0.7.0.tar.gz
  • Upload date:
  • Size: 83.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for screen_ocr-0.7.0.tar.gz
Algorithm Hash digest
SHA256 5604ea74f1e00039d9fb13c4074ffa97fa93d223dfed684be1b0116e0f99f937
MD5 1c2fd00f6a301fca6f0f7681f0c4060c
BLAKE2b-256 ca8b8c6fdfd8a2f50de39975b84dbd95fbc98f7373fef6852b05b51d7b7544e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for screen_ocr-0.7.0.tar.gz:

Publisher: publish.yml on wolfmanstout/screen-ocr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: screen_ocr-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for screen_ocr-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68dbfa036c143f02b371e22567b623f3badf463428c75566f167de6f323dd159
MD5 999c85e4253415de3e6b87612d8946a8
BLAKE2b-256 8f019754265c6fc4db0e551cc9546cc9059a88eac10b3be21cfd2028d09a9895

See more details on using hashes here.

Provenance

The following attestation bundles were made for screen_ocr-0.7.0-py3-none-any.whl:

Publisher: publish.yml on wolfmanstout/screen-ocr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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