# kalyanisundarams93/deep-learning architecture

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

- Interactive diagram: https://gitdiagram.com/kalyanisundarams93/deep-learning
- Repository: https://github.com/kalyanisundarams93/deep-learning

## Overview

This is a small educational deep-learning repository: it contains ANN/CNN notebooks and a Streamlit face-mask detection app. The app’s user-to-result workflow captures a camera image, preprocesses it, runs model inference, and displays a class and confidence. The referenced `facemask.keras` artifact is not in the tree. Notebook contents were not sampled, so their labels reflect filenames only; no connections to them are inferred.

Main entry points: [`Facemask_detection_using_CNN/face.py`](https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py) (Detection app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning notebooks"]
  node_ann_notebook["ANN notebook<br/>[ANN.ipynb]"]
  node_cnn_notebook["CNN notebook<br/>[CNN.ipynb]"]
  node_digit_notebook["CNN digit notebook<br/>[CNN_digit.ipynb]"]
  node_mask_notebook["Mask detection notebook"]
end

subgraph group_detection["Mask detection app"]
  node_streamlit_app["Detection app<br/>[face.py]"]
  node_camera["Camera capture<br/>[face.py]"]
  node_preprocess["Image preprocessing<br/>[face.py]"]
  node_keras_model["Keras model"]
  node_inference["Class inference<br/>[face.py]"]
  node_result["Prediction result<br/>[face.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_streamlit_app
node_streamlit_app -->|"requests capture"| node_camera
node_camera -->|"provides image"| node_preprocess
node_streamlit_app -->|"loads"| node_keras_model
node_streamlit_app -->|"predicts"| node_inference
node_preprocess -->|"provides tensor"| node_inference
node_inference -->|"runs prediction"| node_keras_model
node_inference -->|"displays class"| node_result

click node_ann_notebook "https://github.com/kalyanisundarams93/deep-learning/blob/main/ANN/ANN.ipynb"
click node_cnn_notebook "https://github.com/kalyanisundarams93/deep-learning/blob/main/CNN/CNN.ipynb"
click node_digit_notebook "https://github.com/kalyanisundarams93/deep-learning/blob/main/CNN/CNN_digit.ipynb"
click node_mask_notebook "https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/Face_detection_cnn.ipynb"
click node_streamlit_app "https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py"
click node_camera "https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py"
click node_preprocess "https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py"
click node_inference "https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py"
click node_result "https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.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_ann_notebook,node_cnn_notebook,node_digit_notebook,node_mask_notebook,node_user toneBlue
class node_streamlit_app,node_camera,node_preprocess,node_keras_model,node_inference,node_result toneAmber
```

## Components

### Learning notebooks

- [ANN notebook](https://github.com/kalyanisundarams93/deep-learning/blob/main/ANN/ANN.ipynb): `ANN/ANN.ipynb`
- [CNN notebook](https://github.com/kalyanisundarams93/deep-learning/blob/main/CNN/CNN.ipynb): `CNN/CNN.ipynb`
- [CNN digit notebook](https://github.com/kalyanisundarams93/deep-learning/blob/main/CNN/CNN_digit.ipynb): `CNN/CNN_digit.ipynb`
- [Mask detection notebook](https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/Face_detection_cnn.ipynb): `Facemask_detection_using_CNN/Face_detection_cnn.ipynb`

### Mask detection app

- [Detection app](https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py): `Facemask_detection_using_CNN/face.py`
- [Camera capture](https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py): `Facemask_detection_using_CNN/face.py`
- [Image preprocessing](https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py): `Facemask_detection_using_CNN/face.py`
- **Keras model**
- [Class inference](https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py): `Facemask_detection_using_CNN/face.py`
- [Prediction result](https://github.com/kalyanisundarams93/deep-learning/blob/main/Facemask_detection_using_CNN/face.py): `Facemask_detection_using_CNN/face.py`

### Other components

- **User**

## Connections

- User → Detection app: uses (evidence: `Facemask_detection_using_CNN/face.py`)
- Detection app → Camera capture: requests capture (evidence: `Facemask_detection_using_CNN/face.py`)
- Camera capture → Image preprocessing: provides image (evidence: `Facemask_detection_using_CNN/face.py`)
- Detection app → Keras model: loads (evidence: `Facemask_detection_using_CNN/face.py`)
- Detection app → Class inference: predicts (evidence: `Facemask_detection_using_CNN/face.py`)
- Image preprocessing → Class inference: provides tensor (evidence: `Facemask_detection_using_CNN/face.py`)
- Class inference → Keras model: runs prediction (evidence: `Facemask_detection_using_CNN/face.py`)
- Class inference → Prediction result: displays class (evidence: `Facemask_detection_using_CNN/face.py`)
