AnkiOCR

AnkiWeb addon 450181164

Generates searchable OCR text from images in Anki notes, supporting batch processing, multiple languages, and easy removal or output to a separate field.
AI-generated summary; may contain mistakes.

card-creationnote-managementsearchbeta

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
45 (👍 42 · 👎 3)
Updated
2021-09-19
Anki versions
unknown
Description language
en

Maintenance

abandoned

  • Last update or commit was 1010 days before the snapshot (2023-12-26).
  • The repository has 5 test files.

GitHub

Repository
cfculhane/ankiocr · more by cfculhane
Stars
⭐ 19 · forks 5 · open issues 20
Last commit
2023-12-26
License
MIT
Languages
C, HTML, Roff, C++, Python, CSS, JavaScript, Ruby, Shell, CMake, Makefile
Tests
5

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2021-09-19
History across monthly snapshots

Loading…

Similar addons

pasteOCR

Pastes text from images in the clipboard into Anki using Tesseract OCR, with a button and keyboard shortcut.

card-creationshortcutsbeta

Rating 16 👍 15 · 👎 1 ⭐ 6 Anki 2.1.16~ Updated 2023-02-26
AINotePro: AI Text and Audio for Anki

Generates AI text and MP3 audio from note fields via configurable OpenAI-compatible providers and Edge TTS, supporting prompt templates, vision OCR, batch notes, and local settings storage.

card-creationai

Rating 1 👍 1 · 👎 0 ⭐ 2 Anki 26.05~ Updated 2026-06-27

README

AnkiOCR

Anki 2.1 addon to generate OCR text from images inside of Anki notes/cards. Note that this is only designed for computer generated text, not handwritten.

The aim of this addon was to generate searchable text for image-heavy notes, it is not intended to produce high quality, perfectly ordered text!

Note that because this addon changes the note template, you will see a warning about changing the database and uploading to AnkiWeb. This is normal.

Usage

  1. Open the card browser and select the note(s) you want to process. Use the search bar at the top, select tags, decks, etc.

  2. On the toolbar at the top, select 'Cards', then 'AnkiOCR', and select 'Run AnkiOCR on selected notes', as shown below

docs/menu.png

  1. After processing, each of the images in the note will have the ocr data embedded in the title html tag, viewable as a tooltip:

docs/text_tooltip.png

  1. If you want to remove the OCR data from any notes, select them and then use the "Remove OCR data from selected notes" option in the menu shown above

If you wish to have the OCR data outputted to a separate 'OCR' field on the note, which will modify your note types in your deck, you can set the text_output_location config option to new_field

If you want to add new languages, you need to download the appropriate language data from here.

Installation

AnkiOCR depends on the Tesseract OCR library.

If you're on Windows or Mac, tesseract is bundled with the addon.

If you're on Linux carefully follow the instructions here

AnkiOCR was built on Python 3.9.

It is highly recommended to to use inside the Anki application, by installing the addon from AnkiWeb If you want to run it externally to anki, see below:

  • Ensure you have pyenv and poetry installed
  • Then clone the git repo: git clone https://github.com/cfculhane/AnkiOCR
  • Setup env and install dependencies make install

Testing

make test