Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Converts physical flashcards to digital anki flashcards

Project description


anki_ocr is a python program that converts physical flashcards into digital Anki(Anki is a flashcard program that sychronizes your flashcards and uses spaced repetition for efficient memorization) decks. It uses PyTesseract and genanki to turn your handwritten flashcards into digital anki ones.

There are several use cases, mainly its for you if you have a lot of flashcards and and want to digitalize them. Anki does support image flashcards, but it would take a lot of time and you wouldn't be able to search the flashcards. Its also useful if you're not allowed to use a laptop/phone in class or prefer to handwrite your notes.


Use the package manager pip to install anki_ocr.

pip install anki_ocr


To use anki_ocr, you will need a directory with images of your flashcards. The program will automatically sort the images by date, so you should capture the question followed by its answer(i.e question1>answer1>question2>answer2 and so on), and ensure the number of images is even

anki_ocr [img_directory] [output_deck_name]

This will output an Anki deck package output_deck_name.apkg. This package can be imported into the Desktop or mobile Anki apps


This project is beginner friendly. The entire module is a small single file, and the only new package you might have to deal with is genanki just to see some other ways to generate notes.

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for anki-ocr, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size anki_ocr-0.3-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size anki_ocr-0.3.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page