Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion PROJECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,15 @@ and CLI smoke checks have passed locally on Python 3.13 and on GitHub's

## 16. Installation for Users

Installation currently uses a local checkout. With uv installed:
Users can install directly from the public GitHub repository with uv and Git:

```powershell
uv tool install --python 3.13 "git+https://github.com/Hasko7/matnocr.git"
matnocr doctor
```

uv downloads Python 3.13 if needed. A local checkout remains an alternative.
For project development:

```powershell
uv sync --locked
Expand Down
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Fast, offline OCR for scanned PDFs on Windows. Built for Arabic books, with
support for the OCR languages installed on your system. No cloud service or GPU
required.

**Status:** Development preview. Install from a local checkout today; PyPI
**Status:** Development preview. Install directly from GitHub today; PyPI
publishing and packaged Windows releases are planned.

![MatnOCR processing a PDF in Windows Terminal](docs/images/terminal.png)
Expand All @@ -20,22 +20,26 @@ publishing and packaged Windows releases are planned.

## Installation

Requires Windows with `Windows.Media.Ocr`, Python 3.11 or later, uv, and an OCR
language pack for the text you want to recognize. The full Python version matrix
is still being validated.
Requires Windows with `Windows.Media.Ocr` and an OCR language pack for your text.
Python 3.11–3.14 is tested in CI.

From a local checkout:
Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and
[Git for Windows](https://git-scm.com/downloads/win), then open PowerShell:

```powershell
uv tool install .
uv tool install --python 3.13 "git+https://github.com/Hasko7/matnocr.git"
matnocr doctor
```

For development, use the project environment instead:
uv downloads Python 3.13 if needed. No GitHub account or SSH setup is required.
If `matnocr` is not found, run `uv tool update-shell` and reopen PowerShell.

Alternatively, clone the repository and install locally:

```powershell
uv sync --locked
uv run matnocr --help
git clone https://github.com/Hasko7/matnocr.git
cd matnocr
uv tool install --python 3.13 .
```

See the [development guide](docs/development.md) for editable installation and
Expand All @@ -47,6 +51,9 @@ local checks.
# Show installed OCR languages
matnocr languages

# Install Arabic OCR if missing (Windows requests administrator approval)
matnocr languages install ar-SA

# Recognize an Arabic PDF
matnocr book.pdf --lang ar

Expand Down
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ README enthält:
- [x] arabische Buchseite als `docs/images/book_page.png` mit unverändertem OCR-Beispiel ergänzen (Nutzer)
- [x] Features
- [x] Installation
- [x] kurze GitHub-Installationsanleitung mit Voraussetzungen, lokalem Klonen und geprüftem Python-Status ergänzen
- [x] Quick Start
- [x] Sprachen
- [x] Windows-OCR-Sprachpakete
Expand Down