# kvkrpm/ai_video_education_generator architecture

> Architecture diagram of the GitHub repository kvkrpm/ai_video_education_generator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kvkrpm/ai_video_education_generator
- Repository: https://github.com/kvkrpm/ai_video_education_generator

## Overview

This appears to be a PDF-to-video content pipeline: a user starts the application, PDF content is extracted and processed, then summarized, voiced, and assembled into a video. The source index confirms that the pipeline runner references the PDF extractor, and that the main application references Pillow and MoviePy. The README is empty, and most application modules were not excerpted, so other stage connections are shown as unverified rather than asserted as observed calls.

Main entry points: [`pdf_extractor.py`](https://github.com/kvkrpm/ai_video_education_generator/blob/main/pdf_extractor.py) (PDF extraction), [`video_creator.py`](https://github.com/kvkrpm/ai_video_education_generator/blob/main/video_creator.py) (Video creation), [`Main.py`](https://github.com/kvkrpm/ai_video_education_generator/blob/main/Main.py) (Application entry), [`run_pipeline.py`](https://github.com/kvkrpm/ai_video_education_generator/blob/main/run_pipeline.py) (Pipeline runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Pipeline workflow"]
  node_main["Application entry<br/>[Main.py]"]
  node_runner["Pipeline runner<br/>[run_pipeline.py]"]
end

subgraph group_content["Content processing"]
  node_pdf_extract["PDF extraction<br/>[pdf_extractor.py]"]
  node_pdf_process["PDF processing<br/>[pdf_processing.py]"]
  node_image_extract["Image extraction<br/>[image_extractor.py]"]
  node_cleaner["Text cleaning<br/>[text_cleaner.py]"]
  node_nlp["NLP processing<br/>[nlp_processing.py]"]
  node_summary["Summarization<br/>[summarizer.py]"]
end

subgraph group_media["Media generation"]
  node_tts["Speech generation<br/>[tts_generator.py]"]
  node_video["Video creation<br/>[video_creator.py]"]
end

node_user(("User"))
node_pdf["PDF document"]
node_result["Video output"]

node_user -.->|"starts"| node_main
node_main -.->|"starts pipeline"| node_runner
node_runner -->|"references"| node_pdf_extract
node_pdf -.->|"input"| node_pdf_extract
node_pdf_extract -.->|"passes content"| node_pdf_process
node_pdf_extract -.->|"extracts images"| node_image_extract
node_pdf_process -.->|"passes text"| node_cleaner
node_cleaner -.->|"prepares text"| node_nlp
node_nlp -.->|"provides content"| node_summary
node_summary -.->|"provides script"| node_tts
node_tts -.->|"provides audio"| node_video
node_video -.->|"produces"| node_result
node_main -->|"references media"| node_video
node_video -.->|"uses image tools"| node_result

click node_main "https://github.com/kvkrpm/ai_video_education_generator/blob/main/Main.py"
click node_runner "https://github.com/kvkrpm/ai_video_education_generator/blob/main/run_pipeline.py"
click node_pdf_extract "https://github.com/kvkrpm/ai_video_education_generator/blob/main/pdf_extractor.py"
click node_pdf_process "https://github.com/kvkrpm/ai_video_education_generator/blob/main/pdf_processing.py"
click node_image_extract "https://github.com/kvkrpm/ai_video_education_generator/blob/main/image_extractor.py"
click node_cleaner "https://github.com/kvkrpm/ai_video_education_generator/blob/main/text_cleaner.py"
click node_nlp "https://github.com/kvkrpm/ai_video_education_generator/blob/main/nlp_processing.py"
click node_summary "https://github.com/kvkrpm/ai_video_education_generator/blob/main/summarizer.py"
click node_tts "https://github.com/kvkrpm/ai_video_education_generator/blob/main/tts_generator.py"
click node_video "https://github.com/kvkrpm/ai_video_education_generator/blob/main/video_creator.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_runner,node_user toneBlue
class node_pdf_extract,node_pdf_process,node_image_extract,node_cleaner,node_nlp,node_summary toneAmber
class node_tts,node_video toneMint
class node_pdf,node_result toneIndigo
```

## Components

### Pipeline workflow

- [Application entry](https://github.com/kvkrpm/ai_video_education_generator/blob/main/Main.py): `Main.py`
- [Pipeline runner](https://github.com/kvkrpm/ai_video_education_generator/blob/main/run_pipeline.py): `run_pipeline.py`

### Content processing

- [PDF extraction](https://github.com/kvkrpm/ai_video_education_generator/blob/main/pdf_extractor.py): `pdf_extractor.py`
- [PDF processing](https://github.com/kvkrpm/ai_video_education_generator/blob/main/pdf_processing.py): `pdf_processing.py`
- [Image extraction](https://github.com/kvkrpm/ai_video_education_generator/blob/main/image_extractor.py): `image_extractor.py`
- [Text cleaning](https://github.com/kvkrpm/ai_video_education_generator/blob/main/text_cleaner.py): `text_cleaner.py`
- [NLP processing](https://github.com/kvkrpm/ai_video_education_generator/blob/main/nlp_processing.py): `nlp_processing.py`
- [Summarization](https://github.com/kvkrpm/ai_video_education_generator/blob/main/summarizer.py): `summarizer.py`

### Media generation

- [Speech generation](https://github.com/kvkrpm/ai_video_education_generator/blob/main/tts_generator.py): `tts_generator.py`
- [Video creation](https://github.com/kvkrpm/ai_video_education_generator/blob/main/video_creator.py): `video_creator.py`

### Other components

- **User**
- **PDF document**
- **Video output**

## Connections

- User → Application entry: starts
- Application entry → Pipeline runner: starts pipeline
- Pipeline runner → PDF extraction: references (evidence: `run_pipeline.py`)
- PDF document → PDF extraction: input
- PDF extraction → PDF processing: passes content
- PDF extraction → Image extraction: extracts images
- PDF processing → Text cleaning: passes text
- Text cleaning → NLP processing: prepares text
- NLP processing → Summarization: provides content
- Summarization → Speech generation: provides script
- Speech generation → Video creation: provides audio
- Video creation → Video output: produces
- Application entry → Video creation: references media (evidence: `Main.py`)
- Video creation → Video output: uses image tools
