Anki add-on: 📸PasteOCR - Paste image as text (Fixed by Shigeඞ)

> This is an addon which allows you to paste images as text using optical character recognition (OCR). This add-on is a fixed version of the " pasteOCR " for Anki24+. How to use it, please refer to the original add-on. (If the original add-on has been updated to Anki 24+, this fork is not required.) How to use Original : pasteOCR / Author : Maaz (This image is re-uploaded from the original add-on image.) Notes : ⚠️ Works only on Windows. Mac and Linux will not work (see original add-on description) ⚠️ Does not work in non-English languages (see comments in original Add-on) ⚠️ May not work well if the background is not white A paste icon will be added to the editor. Here is how you change or add multiple OCR languages properly: Download the trained data for the languages you need, such as [jpn.traineddata] https://github.com/tesseract-ocr/tessdata Put the corresponding trained data to this folder of the addon: Path\to\Anki2\addons21\1808435406\deps\win\tesseract\tessdata Open this file with a text editor (such as Notepad++ on Windows): Path\to\Anki2\addons21\1808435406\pytesseract\pytesseract.py Edit Row 370, change the [lang=None] to the language you downloaded, and you can combine multiple OCR languages. For example, I am using the following: image, lang='jpn+eng', config='', nice=0, output_type=Output.STRING, timeout=0, Save the file, restart Anki, and you should be good to go. Related Add-ons : 📸 AnkiOCR - Generate OCR text from images (Fixed for Anki 23 by Shige) 💖Please Support Shige's Anki add-ons development! Hi thank you for using this add-on I'm Shigeඞ! [ 🛠️Fix add-ons ] So far I fixed and customized 80+ broken add-ons for free and developed over 30 add-ons as a hobby ( all add-ons ). If you have requests to fix broken add-ons feel free to contact me. Fix broken addons (Free) [ 💖Donation ] I'm looking for supporters for my add-ons development because I like Anki!👍️ If you support my volunteer development you will get 14 add-ons for patrons only and 15 game themes included in AnkiArcade ($5/month). Get Patrons only addons | Patrons Q and A | Contact [ Special Thanks ] So far I received donations from 561 patrons and without their support I never could develop this, thank you very much!🙏 Patrons: Arthur Bookstein Haruka Luis Alberto, Letona Quispe 07951350313540 Lily Daniel Kohl-Fink Tim NamelessGO Kyle Mondlak ElAnki Abhi S Matthew Hartford Jonathan Contreras findus161 K Peasant of Anki Juan Salgado Ernest Chan Yaeerrrrrr Elisabeth Barber Jesse Asiedu GP O'Byrne David C KM Christopher Lam Kolorophyll Jake Stucki Kaitlyn Bowler Isabel Guan Steven Banner Heidi Leonora Lomoki Akporyoe ellie Tobias Klös Xiuxuan Wang Ujwal Chadha gus forester iuventius Patrick ellis tarek Iggi qiting zeng Carly Burdorf Austin Regal Muneeb Khan Aydin Herik Mia Hoang Hung Sameer Al Matheus Chagas Bryn Price Orlando Frey pie_is_good Svel1989 Take Root Vivian Cao Keeler Kime Kurt Grabow Zarina Balde Pansanity Gabriel Farrugia Lis Y. Fahim Shaik Augusto Stein Ashok Rajpurohit mootcourt NoirHassassin alpha male, shredded af Morgan Torres Dennis Obis Anh-Tai Nguyen Tae Lee Joseph Howell Gabriel Vinicio Guedes sab hoque Terence Bartenbach R Rebecca only Ythalo Vlogs Ketan Pal Aurora Dzurko Tyler Schulte Kmyungc Mac Will S. Meeyah Davis Eric Allen Devon Williams alex han Douglas Beeman Andrew Yick Robert Remedios Marley Easterbrook Temi Jide Ansel Ng Simeon Azfar Hussain Haley Schwarz Woody kenken Jeanna ...full list [ 📥 How do I install this add-on? ] Copy and paste the add-on code ( 1808435406 ) into Anki and you can install it. ( Menu -> Tools -> Add-ons -> Get Add-ons -> Code [ add-on code ] ) When I develop bug fixes, create new features, or compatibility for New Anki, I will notify you and you can install it. Add-ons will be broken when the official Anki gets a major update, so if you like this add-on please support my volunteer development by rating, sharing, and donating. Thank you! Click here and please Rate this add-on, Thank you! :-)

GitHub repository: shigeyukey/my_addons