Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

75 Commits

Folders and files

Repository files navigation

Paddle OCR for NVDA

  • Author: fdrv161
  • NVDA compatibility: 2026.3 and later

Screen OCR for the NVDA screen reader with local PaddleOCR models.

About the add-on

Paddle OCR is an alternative to the built-in Windows OCR (NVDA+R). The add-on uses compact PaddleOCR recognition models from Baidu that run locally. This engine usually recognizes more accurately, especially small fonts, text on dark backgrounds, and non-standard interfaces such as VST plugins. The result window and screen curtain behavior are the same as with Windows OCR; in addition, the add-on can recognize the whole window, the whole screen or a picture on the clipboard, and clicks in the result window land in the middle of the word, with double and right clicks too; the mouse can also be put on a single character.

Requirements

  • NVDA 2026.3 or later.
  • The Microsoft Visual C++ Redistributable x64 package. It is usually already installed; if it is missing, the add-on says so after "Recognition failed".
  • Memory: about 100 MB after the first recognition, and briefly up to 300 MB while recognizing.

Installation

  1. Open the latest release (always the current version) and download the paddleOcr-x.y.z.nvda-addon file.
  2. Open it, confirm the installation and restart NVDA.
  3. Assign gestures to the commands, see Commands and controls.

Commands and controls

There are no default hotkeys to avoid conflicts with other add-ons. You can assign them in the NVDA menu: Preferences, Input Gestures, "Paddle OCR" category.

  • Recognizes the content of the current navigator object with Paddle OCR. Opens the result window: arrows move through the text, Enter clicks the middle of the word at the cursor, Shift+Enter double-clicks it, the Applications key or Shift+F10 right-clicks it, Escape closes the window. NVDA's "Move mouse to navigator object" command (NVDA+numpad slash) puts the mouse on the middle of the character at the cursor.
  • Recognizes the content of the foreground window with Paddle OCR and Recognizes the whole screen with Paddle OCR. The same, but for the whole window or screen.
  • Recognizes the image on the clipboard with Paddle OCR. Works with a copied picture (for example, an image copied in a browser or messenger) and with a copied picture file in File Explorer. The text opens in a window where you read it with the arrows; it has buttons to copy the text and to close the window, and Escape closes it too. There is nothing to click there: it is just a picture.
  • Cycles the Paddle OCR recognition mode: Latin or Cyrillic.
  • Shows the Paddle OCR settings.

On the first recognition after starting NVDA, "Loading OCR models" will be announced. After that, the models remain in memory.

Pressing the command again during a recognition does not start it over: "Recognition in progress" is announced. If a recognition hangs for more than 30 seconds, the next press starts a new one; if it hangs again, restart NVDA.

On my laptop (Ryzen 7 7840HS, 32 GB RAM, Windows 11 25H2), the entire screen is recognized in about 0.4 seconds, and small windows in fractions of a second. On weak hardware it may be slower.

Languages and alphabets

The add-on works in two modes, by alphabet:

  • Latin: English, German, French, Spanish, Polish, and others. Maximum accuracy, but Cyrillic is not recognized.
  • Cyrillic: Russian, Ukrainian, Belarusian, Bulgarian, Serbian, Kazakh, Tatar, Bashkir, and others. English text is also recognized, but accuracy is slightly lower than in "Latin" mode.

By default the mode follows the NVDA language: Latin for English, Cyrillic for Russian.

In the Cyrillic mode, only Russian, Ukrainian, Belarusian and Bulgarian letters are recognized by default, so that random artifacts like "һ" instead of "н" do not get into the text. For Kazakh, Serbian, Tatar, Bashkir and other languages, turn on "Letters of all Cyrillic alphabets in the Cyrillic mode" in the settings. With NVDA in Macedonian, Kyrgyz, Mongolian or Serbian, these letters are always on.

Settings

NVDA menu: Preferences, Settings, "Paddle OCR" category.

  • Recognition mode: follow NVDA language, Latin or Cyrillic.
  • Letters of all Cyrillic alphabets in the Cyrillic mode: for languages other than Russian, Ukrainian, Belarusian and Bulgarian. Disabled by default.
  • Periodically refresh recognized content: while the result window is open, it re-reads itself about every 1.5 seconds and NVDA speaks new text. Only what changed on the screen is read again, so a still screen hardly loads the processor. Disabled by default.
  • Automatically say all when recognition finishes: text is spoken immediately after recognition. Enabled by default.

Privacy

The add-on does not connect to the internet. Screenshots, clipboard pictures and recognized text are not sent anywhere and are not saved to disk. Only its settings are stored in the NVDA configuration. Only errors go into the NVDA log, and at the "debug" level also technical details: image size, recognition time and library versions.

Limitations and nuances

  • Icons and interface frames are sometimes recognized as random characters like "x", "o", "+".
  • Short single words made of letters that are the same in both alphabets are sometimes read with the wrong letters.
  • A click in the result window moves the mouse pointer to the word and returns it about 0.3 seconds later. Clicks land correctly only while the recognized window is still in the same place on the screen.
  • The place of a character is approximate: now and then NVDA+numpad slash puts the mouse on the neighbouring character. The command follows the cursor of the result window only while the navigator object is in it: after NVDA+numpad multiply (move navigator to mouse) it uses the old place until you press NVDA+numpad minus (move navigator to focus).
  • If a button label takes two lines, each of them is read as a separate line of the result.

Version history

What's new in each version is on the releases page.

How this add-on was made

The code, tools and tests of this add-on were written by Claude (Anthropic) in Claude Code. Most commits in the history are marked "Co-Authored-By: Claude"; the few that are not are small README and manifest edits I made myself, or changes written by Claude that I committed myself. I am not a programmer and cannot review the Python code myself.

What I did:

  • what the add-on can do and how to use it;
  • testing every version with significant changes in NVDA; most fixes come from that;
  • the Russian help (written with AI, then read and edited by me) and its translation into English with AI;

Links and licenses

Bug reports and suggestions: Issues.

Built on NVDA, PaddleOCR, ONNX Runtime and NumPy.

The add-on code is distributed under GPL v2 or later, PaddleOCR models under Apache 2.0, onnxruntime under MIT, NumPy under BSD.

Library versions included in the add-on: onnxruntime 1.31.1 and NumPy 2.5.4, from PyPI. Their files are not modified; only parts not needed for recognition, such as tests and type hints, are left out. Where each file was taken from is described in the Third-party components section below.

For developers

Building

Libraries and models are not stored in the repository; scripts download them.

python -m venv .venv
.venv/Scripts/python -m pip install numpy==2.5.4 opencv-python-headless==5.0.0.93 onnxruntime==1.31.1 onnx==1.23.2 pytest pillow markdown
.venv/Scripts/python tools/fetch_models.py det_v6_tiny rec_v6_small rec_cyrillic_v5
.venv/Scripts/python tools/fetch_libs.py
.venv/Scripts/python tools/build_addon.py

OpenCV is needed only by the tests and tools/bench.py (they compare with it and draw test images); the add-on does not include it.

The add-on appears in the repository root as paddleOcr-<version>.nvda-addon. Tests (they need the models downloaded above):

.venv/Scripts/python -m pytest tests -q

Releasing

  1. Raise version in addon/manifest.ini and describe the changes in its changelog field: it becomes the release text.
  2. Push a tag with the same version, for example v1.1.0.
  3. GitHub Actions checks that the tag matches the version, runs the tests, builds the add-on and publishes the release.

Pushing to main without a tag publishes nothing.

Third-party components

The add-on's lib/ and models/ folders are not stored in git. tools/fetch_libs.py and tools/fetch_models.py download them from the official sources below, with pinned versions, so running these two scripts rebuilds the same folders. Files are copied unchanged, except one model (see below); only parts not needed at runtime are left out: tests and test modules, type hints, C headers, NumPy's f2py, onnxruntime tools. Licenses of the libraries go into the package with them.

  • onnxruntime 1.31.1 (MIT), PyPI wheel onnxruntime-1.31.1-cp313-cp313-win_amd64.whl. Binaries: onnxruntime.dll, onnxruntime_providers_shared.dll, onnxruntime_pybind11_state.pyd. Licenses: lib/onnxruntime/LICENSE, ThirdPartyNotices.txt.
  • NumPy 2.5.4 (BSD-3-Clause), PyPI wheel numpy-2.5.4-cp313-cp313-win_amd64.whl. Binaries: the .pyd modules of NumPy and, in numpy.libs, OpenBLAS (libscipy_openblas64_*.dll) and the Microsoft C++ runtime (msvcp140-*.dll) that NumPy ships. Licenses: lib/licenses/numpy/.
  • PaddleOCR models (Apache 2.0) det_v6_tiny, rec_v6_small, rec_cyrillic_v5: ONNX files from the PaddlePaddle organization on Hugging Face. Repository names and SHA-256 hashes are in models/manifest.json; the license is in addon/licenses/PaddleOCR-models.txt. det_v6_tiny and rec_cyrillic_v5 are included unchanged. rec_v6_small is modified: tools/slim_head.py rebuilds its last layer so that it returns only the characters the add-on allows (about 760 of 18,700), computing the same probabilities in parts to use less memory; the rest of the model and its weights are unchanged.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages