AnkiWeb
- Rating
- 6 (👍 6 · 👎 0)
- Updated
- 2026-09-04
- Anki versions
- 26.08.1~
- Description language
- en
AnkiWeb addon 675107747
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.
Open on AnkiWeb GitHub Forum topic Ask about alternatives
active
| Min Anki | Max Anki | Updated |
|---|---|---|
| 25.09.2 | 26.08.1+ | 2026-09-04 |
Loading…
Randomly repositions image-occlusion answer boxes and draws arrows to the actual structures on every review, preventing spatial memorisation while preserving Anki scheduling.
Creates image occlusion flashcards in bulk from PDF slides by drawing boxes, with keyboard shortcuts, cloze support, and configurable masks.
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.
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.
Adds simple image occlusion to any field via an editor dialog, with rectangle drawing, hiding/revealing, multiple image tabs, zoom, and keyboard shortcuts.
Generates Anki flashcards using a TypeScript templating engine and markup language with effects such as shuffling, clozes, multiple choice, and image occlusions.
Add-on for the Anki program. Create cards that hide part of the image and prompt the user to enter text for verification (if the sign is ?, otherwise the usual hiding).
This is not the "Image Occlusion Enhanced" add-on! See it here https://ankiweb.net/shared/info/1374772155
This add-on is simpler in some ways, and not quite so in others. In any case, I needed the ability to enter text on the hiding rectangles themselves, to check such text.
When installing my add-on, the "Image Occlusion Simple (v1.1)" note type is created. Perhaps in other versions, a note type with a different number in brackets will be added.
Those who have previously installed the add-on may have version 1.0. The only difference with version 1.1 is in the card face template code, where the function of voicing the entered word by the voice engine is added when it is clicked (clicking again will allow you to enter the editing mode). If your voice language is not English, then find the line 'var langSS = "en-US";' in the card face template and replace it with your language. If you need to have different languages for different cards, then create a separate field, say with the name "LngTag" and then write in the line: 'var langSS = "{{LngTag}}";'
There is a special button to call the editor of closing rectangles on the background of the image (the cursor must be on the field with the image). The editor allows you to create regular rectangles to test your knowledge (yellow) and additional hiding ones (blue). It is possible to add a line to indicate a point on the picture. For complex cases, the rectangle can be rotated (right mouse button), converted into a circle (oval). The rectangle can have text (test word) and a hint for the word. Even if there is no hint, the user will still be shown the "?" so that he knows that this is an input field.
See the hot keys in the tooltips for buttons, for which move the cursor and hold it. The editor itself is made as a separate file "EditRectangle.html" in the add-on folder and you can easily open it with a browser and check how it works, look at the source code (in the file "EditRectangle.js")
After entering all the rectangles, you can click the save button and then the close button.
You can always create another copy of the entry for this record or create a separate entry for each yellow rectangle. Then in such entries you can easily convert rectangles to the type you need.
When viewing a card, you can change the scale (not ideal, especially for Android). Entering and checking words is simplified, that is, checking is done without taking into account the case of characters and many other signs (Android especially likes to make the first letter capital). If the word is written correctly, such a field will turn green. When entering, you can press the tab key to move to another field for the next input (you can also press the "Enter" key to make it easier for Android). To simplify orientation, scroll to the next field and the field will blink red several times.
For ease of viewing of records, it is recommended to use the "Editor Live Preview (Fixed by Shigeඞ)" add-on https://ankiweb.net/shared/info/1960039667
The minimum possible code is added to the image field itself, and the main functionality can be changed in map templates and styles for the "Image Occlusion Simple (v1.1)" record type
Version 1.1.2 from December 27, 2025. The note type hasn't changed; it remains "Image Occlusion Simple (v1.1)" and working with your decks remains the same.
Since activating the add-on via the "Add New Note" button could cause an error if users immediately wanted to create an occlusion, we had to modify the algorithm. Initially, we assumed we already had notes with images and were using them to create occlusions. But since many people find it more convenient to immediately add a new note using the "Add" button, insert an image, and apply occlusion, I've changed the algorithm: you click the "Add" button, select the "Image Occlusion Simple (v1.1)" note type, choose a deck, insert an image, and if you later want to create new notes of the "Image Occlusion Simple (v1.1)" type, since one note has already been added, it won't be counted when creating new notes, and you must click the "Add" (save) button yourself. Then, check how many notes you've created and what's in them. If you select a note type other than "Image Occlusion Simple (v1.1)" after clicking the "Add" button, the full number of "Image Occlusion Simple (v1.1)" notes will be created when you create new notes using this add-on, as this wasn't the case previously.
I haven't changed the algorithm for saving edited data. I just added a "Save and Close" field to prevent double-clicking.
When creating rectangles in the addon, people wouldn't always release the mouse button on the image itself, which could cause an error. To eliminate this error, the created rectangles are now a different color and have a dotted line. A gray border has been added to the image to prevent confusion. A little white space has been added to the bottom of the image, as there were issues accessing the bottom of the image when the buttons were stacked in two rows.
=============================================
<span id="version2"></span> Version 2, May 9, 2026
Even without installing the add-on, you can evaluate its effectiveness by following these steps: the link: https://andreykaiu.github.io/Anki_Simple-Image-Occlusion/Seas%20(6th%20Grade).html
<img width="912" height="793" alt="Seas 6_1" src="https://github.com/user-attachments/assets/d458140b-3523-40da-add9-9bb385b24616" />
Click the "Game" button to start the game. You must click on the yellow rectangles that hide (or indicate) the object you're looking for. Once you quickly (within 1-2 seconds) find the object, an additional "Next" button will become available. Click this button to open a new page with a different game or, as in this case, to display the quiz assessment form.
The interface may be displayed in the language configured in your browser. If you complete this short game very well, it's a good idea to include your country in addition to your name when filling out the survey, as I'd like to know the preferred target languages.
The example above shows a card with a complex fill-in task, not a simple hiding task. However, this type of filling allows you to both pronounce the words (depending on your system's TTS) and play a speed game, since only instant recall demonstrates your excellent memorization. As a reward for excellent performance, you might be shown a link that could lead to a higher level or somewhere else, even to a website where you might relax (you can set this yourself, or your teacher can send you ready-made cards for viewing outside of Anki).
Important! If you clicked the rectangle for the first time and were shown the text, there is no voiceover, and this is not an error. This is done intentionally to increase speed and to help you remember the pronunciation of the word. Perhaps you could say the word and then click it again to compare it with the actual pronunciation.
If a card is being shown to many people in the audience and something needs to be explained, demonstrated, or emphasized, then you can turn on the pointer mode (you can enter all the words at once if this information is needed).
<img width="838" height="730" alt="Seas 6_2" src="https://github.com/user-attachments/assets/16f0ccfb-4cfe-4b83-81a8-1180a78d179a" />
To clarify the action of a key, you need to hover the mouse pointer over it and wait for the tooltip to appear.
List of hotkeys:
The "Export to HTML" button is available to the user, either in the HTML file itself or only on the ankiuser.net website. If only certain words are difficult for you, you can hide others and leave only the difficult ones. Then, by clicking "Export to HTML," you'll get a file that, when uploaded, will immediately show you what you need to pay attention to when memorizing.
Anki only allows you to copy the HTML code for such a file; you must create a blank file with UTF8 encoding yourself. Currently, there are difficulties creating a file from Anki when embedding a large audio file (over 2 megabytes). However, since this functionality (exporting to HTML) is rarely needed and is primarily for teachers, most users will not experience any issues.
After you install this add-on for your Anki program (computer version only), you can create new cards as before, but here the following fields have been added:
<img width="1213" height="903" alt="SIOv2_1" src="https://github.com/user-attachments/assets/e125f921-2de9-41b0-921a-dcf228ab080b" />
When adding a card, select the 'Image Occlusion Simple (v2)' type. If you previously installed this add-on, you can create a card using the older type.
It's important to fill in the 'Front' field as always, pasting a cut-out portion of the screen from the clipboard that displays the desired PDF page or something else. You can draw the desired rectangles by clicking the special button (circled in red).
The 'Header' field is essential, as it's easier to navigate by the title. Typically, it might contain the title of the book or PDF file, with a link to it in the field below. However, the link doesn't necessarily have to be to a PDF; you might want to link to a regular website.
The 'Words' field is automatically filled in when something is written in the rectangles and is primarily used to search for cards with a specific word.
The 'LngTag' field can be left blank if the language is English, or it can have a hyphen if TTS is not needed. Well, and maybe a TTS settings entry, as described in the Anki help.
<img width="862" height="678" alt="SIOv2_2" src="https://github.com/user-attachments/assets/a28db55b-0c84-4c3e-8dac-636e0f87ed59" />
An audio file can be added to the card (in the 'AudioFile' field). This makes sense when the card only has one rectangle and it makes sense to add some audio to it.
Anything that needs to be added to the front of the card should be written in the 'Front Extra' field. For the back of the card, you can write in the other two fields. Just don't fill out the 'Comments' field right away; it's best to fill it out for each user individually. But if you're making the card for yourself, you can, of course, fill it out however you like.
The last field, 'URLVictory', is only needed for a game. You might want to include links there to another website or to another similar card that can be completed after this one.
Creating hidden rectangles:
<img width="1281" height="940" alt="SIOv2_3" src="https://github.com/user-attachments/assets/f4936f8e-13c0-441b-89f7-32204f43c2e2" />
Not much has changed. Everything is almost the same. However, you can now select a version (it automatically detects based on the type you selected, provided you previously installed the add-on). You can now specify the direction for selecting the next rectangle when filling when pressing 'Tab' (or 'Enter'). The problem is that in documents and texts, the transition to the next occlusion should be horizontal, but in some drawings it's vertical, by column.
A button for selecting a selection area has been added to the image itself. Operations now work on groups of elements. There are also undo and redo commands. Each button has a tooltip describing what it can do and the hotkeys it uses.
Since we sometimes had to view documents with very small print (usually instructions), a 200% zoom button was needed for convenience. This helps with eye strain, so the hotkey [F1] was chosen.
The line was replaced with an arrow, but the direction was reversed, since it is easier to click from an unoccupied point and connect it to a rectangle that already occupies some area of the drawing (although I am more used to dragging the line from left to right).
The line can also be dotted. This is an invisible line. Sometimes drawings already have lines, and there may be more than one leading to the caption. So, unnecessary clutter with lines is unnecessary. For good memorization, it's important to click on the correct point in the drawing (this is the starting point of the arrow, i.e., its sharp end) so that the caption is activated.
You can now change some colors in the ":root" section of the card type's CSS, but sometimes red helps when you need to draw attention to something. In this note type, you can label the rectangle so that the hint begins with an exclamation point '::!'—this will cause the rectangle to be framed in red, drawing our attention to it first. This is sometimes necessary when certain pieces of information are difficult to remember or are crucial and must be checked first (what's the point of remembering the 10 words of a safe password if you can't remember where the safe itself is?).
Note that when selecting rectangles, you can now hold down Alt to draw a shape from the center, hold down Shift to create a precise square (circle), and hold down Ctrl to increment the shape. When rotating (right-click on a point on the rectangle's border), try holding these keys as well. And when moving, Shift will help you maintain horizontal or vertical alignment.
List of hotkeys:
=============================================
Version 2.1, date: 2026-08-14
The font size calculation algorithm has been slightly modified; the active rectangle will be taller than all other rectangles for easier work. The editing mode is now remembered, so you don't have to switch it on every card. A different display has been added for rectangles with reduced or increased difficulty ("hard -1 or +1").
<img width="1163" height="754" alt="2026_08_14_SIO_1" src="https://github.com/user-attachments/assets/21aa4225-5c90-40e9-a393-885acee0d040" />
If a rectangle is less complex (hard="-1"), it has a green border, gray font, and is usually shorter than standard rectangles. If a rectangle is more complex (hard="+1"), it has a blue border, blue font, and is usually taller than standard rectangles.
Changes in the special editor: You can now set two different algorithms for tab positions, or disable them to set a custom order. You can change the rectangle difficulty ("hard -1 or +1") using hotkeys. In the "Front" field, the image will be displayed with a simplified rectangle layout (The "CSS Injector" add-on has been implemented, as many people find it difficult to do this themselves.).
<img width="412" height="392" alt="2026_08_14_SIO_2" src="https://github.com/user-attachments/assets/2fd692b7-bc26-4795-a871-2f8fa6837153" />
It's now possible to convert the "Image Occlusion" note type to "Image Occlusion Simple (v2)." As with other note types, in the "Browse" window, select "Notes -> Change Note Type...." However, you'll still need to manually open the note and change it to the "Image Occlusion Simple (v2)" format. Polygons are converted to rectangles whenever possible, just like text—this should save you at least half the time.
The list of hotkeys has been changed for:
=============================================
Version 2.2, date: 2026-08-17
Now, instead of a word or sentence, you can enter a list of words (separated by the | sign). Words from the list are checked in any order.
This verification algorithm is necessary in the case where the order of the list elements is not so important, and the user remembered all the words in a different order and this is not an error.
=============================================
Version 2.3, date: 2026-09-04
To simplify entering the "|" symbols, you can press the hotkey "Ctrl+;".
An answer is considered correct even if you don't enter diacritics. However, to still distinguish missing diacritics, the text in such a field will be blue (you can change the "--diactricnotequal" CSS variable).
For a rectangle, you can specify a sound to play instead of speech synthesis (since speech synthesis is not available for all languages or its quality is low).
Even without installing addons, you can try the features of this version Example 1 of a Romanian language topic for someone whose native language is Russian
<img width="464" height="443" alt="rum1" src="https://github.com/user-attachments/assets/f255613a-7c8c-497f-8c57-4368113e5247" />
Rectangles with a note symbol next to a cross will be voiced not by TTS, but by an audio file. Note! As before, if there's text, it's shown initially without being spoken, so you can remember how it's written. Pressing it again will speak it. If there's no text, the rectangle will hide (revealing what's underneath) and be spoken.
<img width="1125" height="851" alt="rum2" src="https://github.com/user-attachments/assets/f1f6a2e6-c2ae-4c9c-8954-6bd75d8b8357" />
When creating or editing a note, a note icon (hotkey: Shift+F2) will be available. Use it to enter the desired file name (from the "collection.media" directory) or change it (clearing everything will disable the sound).
A note icon will appear on the rectangle, indicating that a sound has been assigned to this rectangle. Clicking this note will play the sound file (clicking anywhere outside the rectangle will stop the sound file). If you want to save a sound file to the selected rectangle, press the hotkey: Shift+F5; if you want to select a sound file from another folder and have it automatically copied to the "collection.media" directory, press the hotkey: Shift+F3.
=============================================
Some tips for creating (studying) flashcards:
Sorry for any errors. They exist, and I keep finding and finding things that can and should be fixed.
The program already contains so much functionality that I can't even notice it all... and since there are limitations, sometimes I even have an error. This version was developed and modified over the past month and a half, so if any errors are discovered and reported, I'll try to find time by the end of the week to fix them.
Don't be afraid to write and ask questions—it's at least a sign of interest in the program.
HELP AND SUPPORT Please do not use reviews for bug reports or support requests.<br> And be sure to like, as your support is always needed. Thank you. I don't get notified of your reviews, and properly troubleshooting an issue through them is nearly impossible. Instead, please either use the issue tracker (preferred), add-on support forums, or just message me at andreykaiu@gmail.com. Constructive feedback and suggestions are always welcome!
VERSIONS
SPECIAL THANKS
=========================