Skip to main content

OCR-powered screen-capture tool to capture information instead of images.

Project description

NormCap

OCR powered screen-capture tool to capture information instead of images. For Linux, macOS and Windows.

Test Coverage Status CodeQL

GitHub PyPi Flathub AUR

Links: Source Code | Documentation | FAQs | Releases | Changelog

Screencast

Installation

Choose one of the options for a prebuilt release. If you encounter an issue please take a look at the FAQs or report it.

Windows

Linux

It's recommended to install NormCap from Flathub:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.github.dynobo.normcap

Alternative options:

macOS

Note: You must allow the unsigned application on first start: "System Preferences" → "Security & Privacy" → "General" → "Open anyway". You also need to allow NormCap to take screenshots. (#135)

Use Python package

As an alternative to the prebuilt packages above, you can install the NormCap Python package for Python >=3.9, but it requires more setup:

On Linux

# Install dependencies (Ubuntu/Debian)
sudo apt install build-essential tesseract-ocr tesseract-ocr-eng libtesseract-dev libleptonica-dev wl-clipboard

## Install dependencies (Arch)
sudo pacman -S tesseract tesseract-data-eng wl-clipboard

## Install dependencies (Fedora)
sudo dnf install tesseract wl-clipboard

## Install dependencies (openSUSE)
sudo zypper install python3-devel tesseract-ocr tesseract-ocr-devel wl-clipboard

# Install normcap
pip install normcap

# Run
./normcap

On macOS

# Install dependencies
brew install tesseract tesseract-lang

# Install normcap
pip install normcap

# Run
./normcap

On Windows

1. Install Tesseract 5 by using the installer provided by UB Mannheim.

2. Identify the path to the Tesseract base folder. It should contain a /tessdata subfolder and the tesseract.exe binary. Depending on whether you installed Tesseract system-wide or in userspace, the base folder should be:

C:\Program Files\Tesseract-OCR

or

C:\Users\<USERNAME>\AppData\Local\Programs\Tesseract-OCR

3. Adjust environment variables:

  • Create an environment variable TESSDATA_PREFIX and set it to your Tesseract base folder, e.g.: "System Properties" → Tab "Advanced" → "Environment Variables …" → "New …" → Variable: TESSDATA_PREFIX, Value: "C:\Program Files\Tesseract-OCR"

  • Append Tesseract's base folder to the environment variable PATH, e.g.: "System Properties" → Tab "Advanced" → "Environment Variables …" → Section "User variables" → Select PATH → "Edit …" → Add a new entry "C:\Program Files\Tesseract-OCR"

  • To test your setup, open a new cmd-terminal and run:

    tesseract --list-langs
    

4. Install and run NormCap:

# Install normcap
pip install normcap

# Run
normcap

Development

Prerequisites for setting up a development environment: Python >=3.9, uv, and Tesseract >=5.0 (including language data).

# Clone repository
git clone https://github.com/dynobo/normcap.git

# Change into project directory
cd normcap

# Create virtual env and install dependencies
uv sync

# Register pre-commit hook
uv run pre-commit install

# Run NormCap in virtual env
uv run python -m normcap

Contribute to UI translations

Please use Weblate to complement or correct text for existing languages as well as for adding new languages.

(If you prefer not to use Weblate, you can also do it manually, but be aware that this is more cumbersome.)

Credits

This project uses the following non-standard libraries:

  • pyside6 - bindings for Qt UI Framework

And it depends on external software:

Packaging is done with:

  • briefcase - converting Python projects into standalone apps

Thanks to the maintainers of those nice tools!

Similar open source tools

If NormCap doesn't fit your needs, try these alternatives (no particular order):

Why "NormCap"?

See XKCD:

Comic

Certification

WOMM

Contributors

Made with contrib.rocks

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

normcap-0.6.0.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

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

normcap-0.6.0-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file normcap-0.6.0.tar.gz.

File metadata

  • Download URL: normcap-0.6.0.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for normcap-0.6.0.tar.gz
Algorithm Hash digest
SHA256 851dd22f0430b06255777bbd1232861a03bd85abfae3708f92124a8a5ad2cf9f
MD5 30aada0dbc3857089f737d73a1d06573
BLAKE2b-256 ce74eee5d3ec97f8d46fa7c48ac303aeca006ba2cebd95d0a01e45f62beeec41

See more details on using hashes here.

Provenance

The following attestation bundles were made for normcap-0.6.0.tar.gz:

Publisher: cicd.yaml on dynobo/normcap

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

File details

Details for the file normcap-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: normcap-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for normcap-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c3e82b538dab1554bb4c8a92d92177b90b828e303eb94dab5f0ff6bd47160b3
MD5 c207d0bb900ae6639b201a6f952e16fb
BLAKE2b-256 858ec14eac02ed01a07100d29997e4187024bbb6b95d3c2201d15839881b798d

See more details on using hashes here.

Provenance

The following attestation bundles were made for normcap-0.6.0-py3-none-any.whl:

Publisher: cicd.yaml on dynobo/normcap

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