Markdown source

AI Slide Classification And Recreation

scripts/classify_and_recreate_slides.py is the wiki-maker tool for separating real content slides from video frames that only look slide-adjacent. It uses the low-cost Codex vision model gpt-5.4-mini by default and does not read OPENAI_API_KEY.

Rejected frames are not deleted. They stay in wiki/assets/... and remain listed as evidence, but they are hidden from the visible slide sequence so the wiki does not present stage shots, logo walls, or demo footage as slides.

What It Keeps

What It Hides From Slide View

Output

Example Results

Tool Invocation

Code
env -u OPENAI_API_KEY python3 scripts/classify_and_recreate_slides.py \
  --video-id AheG9p_JXVw \
  --deck-kind slides \
  --model gpt-5.4-mini \
  --hide-rejected

For the full OCR pipeline, pass one or more --classify-video-id values to scripts/run_slide_ocr_pipeline.py; set --classify-deck-kind slides, dense, or reconstructed depending on the deck being processed. The legacy --remove-non-slides flag now hides rejected frames from visible wiki sections while keeping evidence files.