AnkiWeb
- Rating
- 5 (π 5 Β· π 0)
- Updated
- 2026-09-09
- Anki versions
- 26.08.1~
- Description language
- en
AnkiWeb addon 1414192727
Automatically detects text regions in images and creates Image Occlusion shapes in Anki with one click, including multi-line merging, toolbar tolerance controls, and Tesseract OCR.
Open on AnkiWeb GitHub Ask about alternatives
active
| Min Anki | Max Anki | Updated |
|---|---|---|
| 25.09 | 26.08.1+ | 2026-09-09 |
Loadingβ¦
Creates image occlusion flashcards in bulk from PDF slides by drawing boxes, with keyboard shortcuts, cloze support, and configurable masks.
Creates Anki image-occlusion cards that hide image regions and let users type answers for verification, with rectangle editing, hints, text-to-speech, and HTML game export.
Creates image-based cloze-deletion flashcards by hiding parts of images to test knowledge of hidden information.
Draws non-destructive colored shape masks over images in Anki's editor, working on mobile and web, with tap-to-reveal and show-answer reveal.
Supports creating Multiple-Choice, Text-Cloze, Image-Cover, and MindMap notes via drag-to-cloze, drag-to-mask, one-click generation, ID auto-increase, batch creation, and local LAN sync.
Creates and manages three note types that reveal cloze blanks and image-occlusion masks sequentially, with combined reveal order, automatic setup, and debug dumps.
Automatically detect text regions in images and create Image Occlusion shapes with one click. Works with Anki's native Image Occlusion editor (25.09+).
Inspired by logseq-anki-sync
Ctrl+Shift+XLinux:
sudo apt-get install tesseract-ocr
macOS:
brew install tesseract
Windows: Download from GitHub releases, add C:\Program Files\Tesseract-OCR to PATH.
Additional languages: Install via package manager (e.g. sudo apt-get install tesseract-ocr-spa) or download .traineddata files from tessdata into Tesseract's tessdata directory.
AnkiWeb: Tools > Add-ons > Get Add-ons > code 1414192727
Manual: Copy this folder to your Anki addons directory:
%APPDATA%\Anki2\addons21\~/Library/Application Support/Anki2/addons21/~/.local/share/Anki2/addons21/Restart Anki. The addon is ready to use immediately with zero setup.
Ctrl+Shift+XTools > Add-ons > Auto Image Occlusion > Config
{
"tesseract_lang": "eng",
"min_confidence": 48,
"min_width": 4,
"min_height": 4,
"min_area_percent": 0.0001,
"vertical_merge_factor": 0.8,
"box_padding": 4,
"button_shortcut": "Ctrl+Shift+X"
}
| Option | Default | Description |
|---|---|---|
tesseract_lang |
"eng" |
Language code. Use "eng+fra" for multiple |
tesseract_cmd |
"" |
Path to tesseract binary. Auto-detects if empty |
min_confidence |
48 |
OCR confidence threshold (0-100). Lower = more detections |
min_width |
4 |
Minimum box width in pixels |
min_height |
4 |
Minimum box height in pixels |
min_area_percent |
0.0001 |
Minimum box area as fraction of image |
vertical_merge_factor |
0.8 |
Max vertical gap as multiple of line height. 0 to disable |
box_padding |
4 |
Symmetric padding in pixels around detected text boxes |
button_shortcut |
"Ctrl+Shift+X" |
Keyboard shortcut (modifiers + key) |
See config.md for detailed examples.
pycmd()Rectangle shapes on the canvas"TesseractNotFoundError": Tesseract isn't installed or not on PATH. Run tesseract --version to verify. On macOS with Homebrew, set tesseract_cmd in config (e.g. "/opt/homebrew/bin/tesseract").
"No text detected": Lower min_confidence (try 35) and min_area_percent (try 0.00005). Ensure image has clear, readable text.
"OCR timeout": Image too large. Reduce to ~1920px width.
Poor accuracy: Adjust min_confidence up (fewer false positives) or down (catch more text).
__init__.py # Addon entry point
addon.py # Hook registration
editor_integration.py # JS injection via editor_mask_editor_did_load_image hook
js_builder.py # Generates injected JavaScript (button, OCR flow, canvas interaction)
message_handler.py # pycmd() message routing (JS <-> Python)
ocr_engine.py # Native Tesseract runner (PSM 12, line grouping, merging)
GNU AGPL v3+ (same as Anki)