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 or later. 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 (note: there is no import screen_ocr because ocr_reader is an injected instance of screen_ocr.Reader).

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

Uploaded Source

Built Distribution

screen_ocr-0.3.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: screen-ocr-0.3.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for screen-ocr-0.3.0.tar.gz
Algorithm Hash digest
SHA256 89b318c561dfb91669fd8fd4a05999e7f32d3b63295cc4d6a0bc9e6fb1103002
MD5 e23aa6911cb75025615fc57d0daad373
BLAKE2b-256 da59e14e2188f36bcf3ef78e9613ba0d5ddac5e0030a42c23b9fabf05c410c88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: screen_ocr-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for screen_ocr-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49339081f419821d159228b1d660ebda45d711ce843cd06c95fa456f35e03e4b
MD5 0d2369722c26304559e92185bd54c9ee
BLAKE2b-256 52d37d3a1611ed5b6dfc1c08c3be811f3178dc0d87a528de97588f24381c4cf9

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