Anki add-on: pasteOCR

This is an addon which allows you to paste images as text using optical character recognition (OCR). It makes using screenshots of lecture slides or textbooks to make cards a breeze! This addon uses the OCR engine Tesseract, and so is not suitable for handwritten text. Usage Once installed, you will notice a button on the right. If you have an image in your clipboard, say after taking a screenshot, clicking the button will extract text from the image and paste it. You can also use the keyboard shortcut for convenience: Ctrl + Alt + V on Windows or Cmd + Alt + V on Mac. Installation pasteOCR uses the Tesseract OCR engine, a powerful OCR engine currently maintained by Google. More on Tesseract here . If you are using Windows, the Tesseract binaries are included with the addon. If you are using Mac OSX, you will have to install Tesseract to your computer. The easiest way to do this is to install Homebrew. Open the terminal and run the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh )" Once that's installed, run the following command: brew install tesseract Once Tesseract is ready to go, you can install the addon to Anki within the program, using the installation code: 1746010116 . Attributions This addon depends on the Tesseract engine, distributed under the Apache 2.0 license. Link . I benefitted enormously from the code provided by Chris Culhane for his AnkiOCR addon while figuring out some quirks with Tesseract. Check out his fantastic addon here . The icon for the button is courtesy of Flaticon.com . Comments, Feedback, and Feature Requests If you would like to get in touch with me for improvements or requests, you can submit a comment to the Issues page on Github , or you can email me directly at m dot maaz at mail dot utoronto dot ca . This software is in beta right now, so please contact me if you have any issues. Note that I don't get notified from comments on this page (the Anki addon page). License The code for this addon is distributed under the GNU General Public License v3.0. The code is on Github . Updates February 26, 2023: Updated it to work with newer versions of Anki. Thanks to the users who reached out to let me know :)

GitHub repository: mmaaz-git/anki-pasteocr
Repository description: Addon for flashcard program Anki to paste images as text using Tesseract OCR.
Languages: Python