anki_ocr
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 digitize 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.
Installation
Use the package manager pip to install anki_ocr.
pip install anki_ocr
Usage
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
Contributing
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.
Clone the project & you probably want a virtual environment
git clone https://github.com/madelesi/anki_ocr.git
cd anki_ocr
python3 -m venv venv_anki_ocr
source venv_anki_ocr/bin/activate
Then install an editable version (updates after every save)
pip install -e .
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.
License
Metadata
Release files for anki-ocr 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anki_ocr-0.3.1.tar.gz | 4.5 kB | Without provenance | Details for anki_ocr-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anki_ocr-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for anki_ocr-0.3.1-py3-none-any.whl |
Total release size: 10.4 kB
Release files / anki_ocr-0.3.1.tar.gz
| Download URL | anki_ocr-0.3.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d74c47f852b68251278d5f4e4845774a3006bccba76aef7e3b377f2e0b93d35
|
|
BLAKE2b-256 checksum How to use checksums |
b6152b36a7b672761f53aa26d25742e46b136af074659393fe4d20b3bb07fcb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5
|
Release files / anki_ocr-0.3.1-py3-none-any.whl
| Download URL | anki_ocr-0.3.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70e65dbcbde29e1af2c5479f9cfdc6cd91d8f9aa643482ee1df24c2b813ccf57
|
|
BLAKE2b-256 checksum How to use checksums |
4a09e8236a45cff62f0bbf9d13c1c1deb05b499f368a0b4e9280b75ae6a1592d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5
|
Security for anki-ocr 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.