Anki add-on: Auto Image Occlusion

Auto Image Occlusion — Automatic Image Occlusion for Anki Automatically detect text regions in images and create Image Occlusion shapes with a single click. Ideal for diagrams, anatomy labels, flowcharts and other images with scattered or multi-line labels. Key features One-click auto-detection of text regions powered by Tesseract OCR (PSM 12 — sparse text with OSD) Line-based grouping and vertical merging to handle multi-line labels reliably Configurable filters: confidence threshold, minimum size, area percentage, and merge factor Collision detection to avoid duplicating existing occlusions Customizable keyboard shortcut (default: Ctrl+Shift+X) Auto-detects Tesseract on Windows and macOS (Homebrew paths built in) Works with Anki's native Image Occlusion UI Quick highlights Fast and reliable for diagrams and documents Tunable for noisy, low-quality, or high-density images Dependencies (pytesseract, Pillow) auto-install on first launch — no manual setup needed Requirements Anki 25.09+ (Image Occlusion available) Tesseract OCR installed on your system Quick install Install Tesseract on your OS: Debian/Ubuntu: sudo apt-get install tesseract-ocr macOS: brew install tesseract Windows: download and install from UB-Mannheim releases Install this addon in Anki. Python dependencies install automatically on first startup. Configuration (examples) Default config (works for most): { "tesseract_lang": "eng", "min_confidence": 48, "vertical_merge_factor": 0.65, "button_shortcut": "Ctrl+Shift+X" } More detections (blurry images): { "min_confidence": 35, "min_area_percent": 0.00005 } Fewer false positives (high-quality images): { "min_confidence": 60, "min_area_percent": 0.001 } Custom shortcut (macOS): { "button_shortcut": "Cmd+Alt+D" } If Tesseract isn't found automatically, set the path manually: { "tesseract_cmd": "/opt/homebrew/bin/tesseract" } How it works (short) Captures image from the Image Occlusion editor. Sends image to Python backend → Tesseract OCR (PSM 12, sparse text with OSD). Groups words by line, filters by confidence/size/length, merges vertically adjacent lines. Returns occlusion boxes to the editor for review and fine-tuning. Troubleshooting tips If nothing is detected, check Tesseract installation and lower min_confidence / min_area_percent . For timeouts, reduce image resolution (~1920px width). If you see pytesseract.TesseractNotFoundError , set tesseract_cmd in config to the full path of the tesseract binary. For full documentation, configuration details, and source code — visit the project on GitHub: https://github.com/BEST8OY/Auto-Image-Occlusion-Anki-Addon

GitHub repository: best8oy/auto-image-occlusion-anki-addon
Repository description: Auto Image Occlusion for Anki Native Image Occlusion Tool 
Languages: Python