# onlyphantom/cvessentials architecture

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

- Interactive diagram: https://gitdiagram.com/onlyphantom/cvessentials
- Repository: https://github.com/onlyphantom/cvessentials

## Overview

This repository is a math-first computer-vision course, not a unified application: learners study HTML/PDF/Markdown lessons and experiment with standalone OpenCV scripts. The guide spans affine transformations, kernel filtering, edge detection and segmentation, and digit recognition. The scripts demonstrate individual techniques rather than calling one another, so the graph shows documented learning-material relationships, not an invented processing pipeline. The README also mentions facial recognition as a future chapter, but the tree provides no implementation or lesson path for it.

Main entry points: [`README.md`](https://github.com/onlyphantom/cvessentials/blob/master/README.md) (Study Guide), [`transformation/lecture_affine.html`](https://github.com/onlyphantom/cvessentials/blob/master/transformation/lecture_affine.html) (Affine Lesson), [`transformation`](https://github.com/onlyphantom/cvessentials/tree/master/transformation) (Affine Examples), [`edgedetect/kernel.html`](https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/kernel.html) (Kernel Lesson)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_transform["Transformations"]
  node_affine["Affine Lesson"]
  node_affine_examples["Affine Examples"]
end

subgraph group_filter["Filtering and Edges"]
  node_kernel["Kernel Lesson<br/>[kernel.html]"]
  node_blur_examples["Blur Examples"]
  node_sharpen_examples["Sharpening Examples"]
  node_edge_lesson["Edge Detection Lesson<br/>[edgedetect.html]"]
  node_sobel["Sobel Examples<br/>[sobel_02.py]"]
  node_canny["Canny Example<br/>[canny_01.py]"]
  node_threshold["Threshold Examples"]
  node_contours["Contour Examples<br/>[contour_01.py]"]
end

subgraph group_digits["Digit Recognition"]
  node_digit_lesson["Digit Lesson<br/>[digitrec.html]"]
  node_roi_examples["ROI Examples<br/>[roi_02.py]"]
  node_morphology["Morphology Examples"]
  node_contour_area["Contour Measurements<br/>[contourarea_03.py]"]
  node_digit_classifier["Seven-Segment Classifier<br/>[digit_01.py]"]
end

subgraph group_course["Course Materials"]
  node_guide["Study Guide<br/>[README.md]"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_guide
node_guide -->|"covers"| node_affine
node_guide -->|"offers examples"| node_affine_examples
node_guide -->|"covers"| node_kernel
node_guide -->|"offers examples"| node_blur_examples
node_guide -->|"offers examples"| node_sharpen_examples
node_guide -->|"covers"| node_edge_lesson
node_guide -->|"offers examples"| node_sobel
node_guide -->|"offers examples"| node_canny
node_guide -->|"covers"| node_threshold
node_guide -->|"covers"| node_contours
node_guide -->|"covers"| node_digit_lesson
node_guide -->|"offers examples"| node_roi_examples
node_guide -->|"offers examples"| node_morphology
node_guide -->|"covers"| node_contour_area
node_guide -->|"offers examples"| node_digit_classifier

click node_guide "https://github.com/onlyphantom/cvessentials/blob/master/README.md"
click node_affine "https://github.com/onlyphantom/cvessentials/blob/master/transformation/lecture_affine.html"
click node_affine_examples "https://github.com/onlyphantom/cvessentials/tree/master/transformation"
click node_kernel "https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/kernel.html"
click node_blur_examples "https://github.com/onlyphantom/cvessentials/tree/master/edgedetect"
click node_sharpen_examples "https://github.com/onlyphantom/cvessentials/tree/master/edgedetect"
click node_edge_lesson "https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/edgedetect.html"
click node_sobel "https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/sobel_02.py"
click node_canny "https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/canny_01.py"
click node_threshold "https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/intensitythresholding_01.py"
click node_contours "https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/contour_01.py"
click node_digit_lesson "https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/digitrec.html"
click node_roi_examples "https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/roi_02.py"
click node_morphology "https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/morphological_02.py"
click node_contour_area "https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/contourarea_03.py"
click node_digit_classifier "https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/digit_01.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_affine,node_affine_examples toneBlue
class node_kernel,node_blur_examples,node_sharpen_examples,node_edge_lesson,node_sobel,node_canny,node_threshold,node_contours toneAmber
class node_digit_lesson,node_roi_examples,node_morphology,node_contour_area,node_digit_classifier toneMint
class node_guide toneRose
class node_learner toneIndigo
```

## Components

### Transformations

- [Affine Lesson](https://github.com/onlyphantom/cvessentials/blob/master/transformation/lecture_affine.html): `transformation/lecture_affine.html`
- [Affine Examples](https://github.com/onlyphantom/cvessentials/tree/master/transformation): `transformation`

### Filtering and Edges

- [Kernel Lesson](https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/kernel.html): `edgedetect/kernel.html`
- [Blur Examples](https://github.com/onlyphantom/cvessentials/tree/master/edgedetect): `edgedetect`
- [Sharpening Examples](https://github.com/onlyphantom/cvessentials/tree/master/edgedetect): `edgedetect`
- [Edge Detection Lesson](https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/edgedetect.html): `edgedetect/edgedetect.html`
- [Sobel Examples](https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/sobel_02.py): `edgedetect/sobel_02.py`
- [Canny Example](https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/canny_01.py): `edgedetect/canny_01.py`
- [Threshold Examples](https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/intensitythresholding_01.py): `edgedetect/intensitythresholding_01.py`
- [Contour Examples](https://github.com/onlyphantom/cvessentials/blob/master/edgedetect/contour_01.py): `edgedetect/contour_01.py`

### Digit Recognition

- [Digit Lesson](https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/digitrec.html): `digitrecognition/digitrec.html`
- [ROI Examples](https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/roi_02.py): `digitrecognition/roi_02.py`
- [Morphology Examples](https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/morphological_02.py): `digitrecognition/morphological_02.py`
- [Contour Measurements](https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/contourarea_03.py): `digitrecognition/contourarea_03.py`
- [Seven-Segment Classifier](https://github.com/onlyphantom/cvessentials/blob/master/digitrecognition/digit_01.py): `digitrecognition/digit_01.py`

### Course Materials

- [Study Guide](https://github.com/onlyphantom/cvessentials/blob/master/README.md): `README.md`

### Other components

- **Learner**

## Connections

- Learner → Study Guide: studies (evidence: `README.md`)
- Study Guide → Affine Lesson: covers (evidence: `README.md`)
- Study Guide → Affine Examples: offers examples (evidence: `README.md`)
- Study Guide → Kernel Lesson: covers (evidence: `README.md`)
- Study Guide → Blur Examples: offers examples (evidence: `README.md`)
- Study Guide → Sharpening Examples: offers examples (evidence: `README.md`)
- Study Guide → Edge Detection Lesson: covers (evidence: `README.md`)
- Study Guide → Sobel Examples: offers examples (evidence: `README.md`)
- Study Guide → Canny Example: offers examples (evidence: `README.md`)
- Study Guide → Threshold Examples: covers (evidence: `README.md`)
- Study Guide → Contour Examples: covers (evidence: `README.md`)
- Study Guide → Digit Lesson: covers (evidence: `README.md`)
- Study Guide → ROI Examples: offers examples (evidence: `README.md`)
- Study Guide → Morphology Examples: offers examples (evidence: `README.md`)
- Study Guide → Contour Measurements: covers (evidence: `README.md`)
- Study Guide → Seven-Segment Classifier: offers examples (evidence: `README.md`)
