# dmytrozelinskyy/computer-vision-projects architecture

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

- Interactive diagram: https://gitdiagram.com/dmytrozelinskyy/computer-vision-projects
- Repository: https://github.com/dmytrozelinskyy/computer-vision-projects

## Overview

This repository is a collection of four standalone computer-vision exercises, not a shared application. Users run a project script against images, video, or CIFAR-10 data; each script performs its own detection, matching, or model-training workflow and displays or saves results. The graph preserves the README’s static and video color detection, coin classification, three feature-matching exercises, and CNN reporting. Internal stages are conceptual views of work performed within each script; no shared runtime components are evident in the supplied sources.

Main entry points: [`color-detection/detect_video.py`](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/color-detection/detect_video.py) (Video detection), [`cifar10-cnn/main.py`](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py) (CIFAR-10 data), [`feature-matching/video_feature_matching.py`](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/feature-matching/video_feature_matching.py) (Video matching), [`color-detection/detect_image.py`](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/color-detection/detect_image.py) (Image detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_color["Color detection"]
  node_image_detect["Image detection<br/>[detect_image.py]"]
  node_video_detect["Video detection<br/>[detect_video.py]"]
end

subgraph group_coins["Coin counting"]
  node_coin_analysis["Tray and coin analysis<br/>[coin_counter.py]"]
end

subgraph group_features["Feature matching"]
  node_harris_sift["Corners and keypoints<br/>[corner_harris.py]"]
  node_image_match["Image matching"]
  node_video_match["Video matching"]
end

subgraph group_cnn["CIFAR-10 CNN"]
  node_cifar_data["CIFAR-10 data<br/>[main.py]"]
  node_cnn_model["Augmentation and CNN<br/>[main.py]"]
  node_cnn_training["Training and evaluation<br/>[main.py]"]
  node_cnn_report["PDF report<br/>[main.py]"]
end

node_user(("User"))
node_sample_images["Sample images"]
node_sample_video["Sample videos"]
node_cifar_source["CIFAR-10 source"]
node_outputs["Model and report files"]

node_user -->|"runs"| node_image_detect
node_user -->|"runs"| node_video_detect
node_user -->|"runs"| node_coin_analysis
node_user -->|"runs"| node_harris_sift
node_user -->|"runs"| node_image_match
node_user -->|"runs"| node_video_match
node_user -->|"runs"| node_cifar_data
node_sample_images -->|"reads"| node_image_detect
node_sample_video -->|"reads"| node_video_detect
node_video_detect -->|"calls detector"| node_video_detect
node_sample_images -->|"reads"| node_coin_analysis
node_sample_images -->|"reads"| node_harris_sift
node_sample_images -->|"reads"| node_image_match
node_sample_images -->|"reads query"| node_video_match
node_sample_video -->|"reads frames"| node_video_match
node_cifar_data -->|"loads data"| node_cifar_source
node_cifar_data -->|"feeds data"| node_cnn_model
node_cnn_model -->|"trains"| node_cnn_training
node_cnn_training -->|"provides metrics"| node_cnn_report
node_cnn_training -->|"saves model"| node_outputs
node_cnn_report -->|"writes PDF"| node_outputs

click node_image_detect "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/color-detection/detect_image.py"
click node_video_detect "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/color-detection/detect_video.py"
click node_coin_analysis "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/coin-counter/coin_counter.py"
click node_harris_sift "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/feature-matching/corner_harris.py"
click node_image_match "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/feature-matching/feature_matching.py"
click node_video_match "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/feature-matching/video_feature_matching.py"
click node_cifar_data "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py"
click node_cnn_model "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py"
click node_cnn_training "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py"
click node_cnn_report "https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.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_image_detect,node_video_detect,node_user toneBlue
class node_coin_analysis toneAmber
class node_harris_sift,node_image_match,node_video_match toneMint
class node_cifar_data,node_cnn_model,node_cnn_training,node_cnn_report toneRose
class node_sample_images,node_sample_video,node_cifar_source,node_outputs toneIndigo
```

## Components

### Color detection

- [Image detection](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/color-detection/detect_image.py): `color-detection/detect_image.py`
- [Video detection](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/color-detection/detect_video.py): `color-detection/detect_video.py`

### Coin counting

- [Tray and coin analysis](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/coin-counter/coin_counter.py): `coin-counter/coin_counter.py`

### Feature matching

- [Corners and keypoints](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/feature-matching/corner_harris.py): `feature-matching/corner_harris.py`
- [Image matching](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/feature-matching/feature_matching.py): `feature-matching/feature_matching.py`
- [Video matching](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/feature-matching/video_feature_matching.py): `feature-matching/video_feature_matching.py`

### CIFAR-10 CNN

- [CIFAR-10 data](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py): `cifar10-cnn/main.py`
- [Augmentation and CNN](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py): `cifar10-cnn/main.py`
- [Training and evaluation](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py): `cifar10-cnn/main.py`
- [PDF report](https://github.com/dmytrozelinskyy/computer-vision-projects/blob/main/cifar10-cnn/main.py): `cifar10-cnn/main.py`

### Other components

- **User**
- **Sample images**
- **Sample videos**
- **CIFAR-10 source**
- **Model and report files**

## Connections

- User → Image detection: runs (evidence: `README.md`)
- User → Video detection: runs (evidence: `README.md`)
- User → Tray and coin analysis: runs (evidence: `README.md`)
- User → Corners and keypoints: runs (evidence: `README.md`)
- User → Image matching: runs (evidence: `README.md`)
- User → Video matching: runs (evidence: `README.md`)
- User → CIFAR-10 data: runs (evidence: `README.md`)
- Sample images → Image detection: reads (evidence: `color-detection/detect_image.py`)
- Sample videos → Video detection: reads (evidence: `color-detection/detect_video.py`)
- Video detection → Video detection: calls detector (evidence: `color-detection/detect_video.py`)
- Sample images → Tray and coin analysis: reads (evidence: `coin-counter/coin_counter.py`)
- Sample images → Corners and keypoints: reads (evidence: `feature-matching/corner_harris.py`)
- Sample images → Image matching: reads (evidence: `feature-matching/feature_matching.py`)
- Sample images → Video matching: reads query (evidence: `feature-matching/video_feature_matching.py`)
- Sample videos → Video matching: reads frames (evidence: `feature-matching/video_feature_matching.py`)
- CIFAR-10 data → CIFAR-10 source: loads data (evidence: `cifar10-cnn/main.py`)
- CIFAR-10 data → Augmentation and CNN: feeds data (evidence: `cifar10-cnn/main.py`)
- Augmentation and CNN → Training and evaluation: trains (evidence: `cifar10-cnn/main.py`)
- Training and evaluation → PDF report: provides metrics (evidence: `cifar10-cnn/main.py`)
- Training and evaluation → Model and report files: saves model (evidence: `cifar10-cnn/main.py`)
- PDF report → Model and report files: writes PDF (evidence: `cifar10-cnn/main.py`)
