πŸ“·OCR local - Image to text and LaTeX (offline first, optional AI)

AnkiWeb addon 234915917

Converts images into text and LaTeX formulas offline using local OCR engines, with optional AI assistance, inserting editable results directly into Anki notes.
AI-generated summary; may contain mistakes.

card-creationaiformattingshortcuts

Open on AnkiWeb GitHub Forum topic Ask about alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-10-18
Anki versions
2.1.1~
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-10-18 (14 days before the snapshot).
  • Commits in the last year: 2.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-10-18
History across monthly snapshots

Loading…

Similar addons

pasteOCR has 1 fork β†’

Extracts text from clipboard images using Tesseract OCR, letting users paste screenshots of lecture slides or textbooks directly into Anki cards via a button or keyboard shortcut.

card-creationshortcutsbeta

16 votes 72% approval πŸ‘ 15 Β· πŸ‘Ž 1 ⭐ 6 Anki 2.1.16~ Updated 2023-02-26
Hands-Free-Anki

Enables fully hands-free Anki review by reading cards aloud, recognizing spoken answers, and scoring them with AI, OCR, and multi-language support.

aischedulingreview-flowaccessibility

1 votes 0% approval πŸ‘ 0 Β· πŸ‘Ž 1 ⭐ 5 Anki 2.1.1~ Updated 2026-02-06
Easy Search

Enables offline AI semantic and keyword hybrid card search on local CPU, with a browser semantic: prefix, a search dialog for previewing and suspending cards, and automatic model download.

aisearch

2 votes 9% approval πŸ‘ 1 Β· πŸ‘Ž 1 Anki 2.1.1~ Updated 2026-05-30

Description

OCR local: turn any image into text and LaTeX

Take a screenshot, a photo or a scan. Click OCR in the editor. Get clean text and LaTeX formulas in your note, with a compiled preview underneath. It works offline and for free; a paid AI is optional.

Set it up in 2 steps (once)

1. Install LaTeX (free). Formulas are shown as real LaTeX images, so your computer needs a LaTeX distribution: MiKTeX on Windows, MacTeX on macOS, TeX Live on Linux.

Install LaTeX

2. Install the OCR engine. Tools > OCR local: settings > Engine > "Install / repair the engine". It downloads about 1 GB, one time, and sets everything up inside Anki's add-on folder.

Install the engine

Then use it

In the Add or Edit window click OCR, choose your image (or paste one), pick Formula, click Read image, then Insert into note.

Read an image into LaTeX

The animations are real captures of the add-on running in Anki, with captions added.

Features

  • Local first: Tesseract (text) and Pix2Text (formulas) run on your computer.
  • Optional AI mode: a vision model (Claude, any OpenAI-compatible service, or a free local Ollama model) gives the best LaTeX on hard formulas and handwriting. With "local first" on, the paid AI is called only when the local result looks doubtful.
  • Formulas are compiled with LaTeX to check them; broken ones are corrected automatically.
  • Four modes: text, formula, text + formulas, AI. You can edit the result before inserting.
  • Keeps bold, italics, colors and bullet lists.
  • Windows, macOS and Linux. Shortcuts: Ctrl+Shift+O / U / K / L.

Languages

English, French, Spanish, German, Italian, Portuguese, Dutch, Russian, Japanese and Chinese. It follows Anki's language automatically. The translations are machine-made, so corrections are welcome. Right-to-left languages are not supported yet (English is used instead).

Privacy

Nothing leaves your computer unless you turn on the AI mode and use it; then the image goes only to the provider you chose. No analytics, no tracking. Your API key stays in Anki's configuration on your computer.

Help and source

Questions, bugs, ideas: https://github.com/DesosseBR/OCR-local---Image-to-text-and-LaTeX-offline-first-optional-AI-

If this add-on saves you time, a coffee helps me keep improving it:

Buy Me A Coffee

Created by Habib Lamine Ouattara

```

README

OCR-local---Image-to-text-and-LaTeX-offline-first-optional-AI-