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

Uploaded Source

Built Distribution

screen_ocr-0.2.0-py2.py3-none-any.whl (13.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: screen-ocr-0.2.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for screen-ocr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f56527605e5b64d38ada96ee3c843d3eaf9414549cd08b900b6cec770cab9399
MD5 6de98d0424626b6f6b4383135e6c9938
BLAKE2b-256 d2013a8909cd0cb31a2cb729ed342fdd5ebbb7d9f10cbba3350d97cf83088d03

See more details on using hashes here.

File details

Details for the file screen_ocr-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: screen_ocr-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for screen_ocr-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 87f89ee60e420b919c47154aae8ae0d5eefbf927747304497f6b9fb7b67fe6f1
MD5 fecff1c344e7a574962910d5696585c7
BLAKE2b-256 83a9aedca11a18e11a1346f98587ae0c70e52997dcc8d5fc41b345776a74e93c

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