Generates timelapse videos using data exported from the Kanjigrid Anki addon (AnkiWeb).
-
Install dependencies.
-
Get some Kanjigrid Timelapse Data.
-
(Optional) Edit settings in
config.ini
,dark.css
, orlight.css
. -
Download kanjigrid-timelapse-master.zip and extract the zip.
-
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 theSkip image generation
prompt when runninggenerate.py
.
-
Install the Kanjigrid Anki addon
-
In Anki, on the top menu, go to Tools > Generate Kanji Grid.
-
Set any settings you want for the timelapse.
-
Select the
Data
tab. -
Set the timelapse range and step size under
Timelapse
. -
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.
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
Note: This is highly compressed.