Skip to content

Generates timelapse videos using data exported from the Kanjigrid Anki addon.

License

Notifications You must be signed in to change notification settings

Kuuuube/kanjigrid-timelapse

Repository files navigation

Kanjigrid Timelapse

Generates timelapse videos using data exported from the Kanjigrid Anki addon (AnkiWeb).

Usage

  1. Install dependencies.

  2. Get some Kanjigrid Timelapse Data.

  3. (Optional) Edit settings in config.ini, dark.css, or light.css.

  4. Download kanjigrid-timelapse-master.zip and extract the zip.

  5. Run generate.py and input your json file path.

    If the video didn't turn out how you wanted but the image data is good, answer y to the Skip image generation prompt when running generate.py.

Getting Kanjigrid Timelapse Data

  1. Install the Kanjigrid Anki addon

  2. In Anki, on the top menu, go to Tools > Generate Kanji Grid.

  3. Set any settings you want for the timelapse.

  4. Select the Data tab.

  5. Set the timelapse range and step size under Timelapse.

  6. Click Generate Timelapse Data and select somewhere to save the file.

    It can take a VERY long time to generate this data for large grids, long timespans, or small step sizes.

Dependencies

Python 3: Download link

Python playwright, pillow, and opencv modules: To install it, enter the following command in cmd or a terminal:

pip install playwright pillow opencv-python

Setup playwright dependency:

Note: On some Linux distros, this may fail to install some features but still install the required features for Kanjigrid Timelapse. Check whether it works before troubleshooting.

playwright install

If the above command doesn't work, you may be missing some python path variables. Try this:

python -m playwright install

Example

Note: This is highly compressed.

timelapse_example.mp4

About

Generates timelapse videos using data exported from the Kanjigrid Anki addon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published