# abdalmohaymenesmaeel/deeplearning-computervision architecture

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

- Interactive diagram: https://gitdiagram.com/abdalmohaymenesmaeel/deeplearning-computervision
- Repository: https://github.com/abdalmohaymenesmaeel/deeplearning-computervision

## Overview

#### Purpose and Delivery Model
This is a notebook-based educational repository for deep learning, computer vision, and Arabic NLP. There is no application service or package entry point; individual Jupyter notebooks are the executable entry points, organized as sequential training sessions and exam exercises.

#### Arabic NLP Foundations
Early sessions introduce text data preparation, embeddings, and document classification using local Arabic-language datasets. The flow is raw text or spreadsheet articles → vectorization/Word2Vec or model training → classification/prediction notebooks.
- `Session 1/word2vec.ipynb`
- `Session 2/1-BuildModel.ipynb`
- `Session 2/4-Predict.ipynb`

#### Sequence-Model Learning
Recurrent-network material compares sequence representations and RNN/LSTM approaches against a CSV dataset. This is a self-contained model-learning stage rather than a runtime dependency for later computer-vision sessions.
- `Session 3/00_sequence_types.ipynb`
- `Session 3/01_rnn.ipynb`
- `Session 3/03_rnn_vs_lstm.ipynb`
- `Session 3/dataset.csv`

#### Classical Image Processing Pipeline
Session 4 is the image-processing foundation: image loading, grayscale/HSV conversion, masks and drawing, edge detection, thresholding, geometric transforms, filtering, and augmentation. These notebooks establish common preprocessing boundaries before feature extraction or learned vision models.
- `Session 4/1-getting_started_main.ipynb`
- `Session 4/3-hsv_mask_main.ipynb`
- `Session 4/5-edge_detection_main.ipynb`
- `Session 4/10-data_Aug_main.ipynb`

#### Feature-Based and Supervised Vision
Session 5 progresses from handcrafted image representations—raw pixels, Canny, Harris, LBP, ORB, HOG, and color histograms—to conventional ML classification and deep-learning examples. Inputs include MNIST NumPy train/test arrays and a Cats-vs-Dogs directory dataset; notebooks likely own their own training/evaluation flow.
- `Session 5/completeExamnple.ipynb`
- `Session 5/CatsVsDogs.ipynb`
- `Session 5/mnist/x_train.npy`
- `Session 5/dogs-vs-cats/Dogs`

#### Segmentation and Image Clustering
Session 6 focuses on segmentation plus unsupervised image grouping. The material boundary is source roof imagery → segmentation/clustering notebook processing → persisted cluster folders and suspicious-image review output.
- `Session 6/1-Segmentation.ipynb`
- `Session 6/Clustring.ipynb`
- `Session 6/dataset/roofless`
- `Session 6/output_clusters/suspicious_images`

#### Exam / Capstone Analysis
The exam notebooks apply image classification and clustering to a three-class dataset and save tabular analysis artifacts. Result spreadsheets are durable outputs that can support review rather than model-serving infrastructure.
- `Exam Notebooks/imgclassification.ipynb`
- `Exam Notebooks/clustring.ipynb`
- `Exam Notebooks/dataset/class1`
- `Exam Notebooks/classification_clustering_results.xlsx`

#### Runtime and Infrastructure Boundaries
The required runtime is Jupyter Notebook with a Python ML/CV environment; likely ecosystem dependencies include numerical/dataframe, image-processing, and deep-learning libraries, but no dependency manifest is present. All datasets and outputs are repository-local. No APIs, databases, cloud services, deployment configuration, or external-service integrations are represented in the tree.

Main entry points: [`Session 4/1-getting_started_main.ipynb`](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/1-getting_started_main.ipynb) (Image preprocessing), [`Session 3/00_sequence_types.ipynb`](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/00_sequence_types.ipynb) (Sequence representations), [`Session 6/Clustring.ipynb`](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%206/Clustring.ipynb) (Image clustering), [`Session 3/dataset.csv`](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/dataset.csv) (Sequence CSV dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_nlp["Arabic NLP"]
  node_nlp_word2vec["Word2Vec preparation<br/>notebook<br/>[word2vec.ipynb]"]
  node_nlp_build["Text classifier training<br/>notebook<br/>[1-BuildModel.ipynb]"]
  node_nlp_predict["Text prediction<br/>notebook<br/>[4-Predict.ipynb]"]
end

subgraph group_sequence["Sequence Models"]
  node_sequence_data[("Sequence CSV dataset<br/>[dataset.csv]")]
  node_sequence_types["Sequence representations<br/>notebook"]
  node_rnn_learning["RNN/LSTM comparison<br/>notebook"]
end

subgraph group_vision["Computer Vision"]
  node_image_processing["Image preprocessing<br/>notebook pipeline"]
  node_hsv_masks["HSV masks<br/>notebook"]
  node_edge_detection["Edge detection<br/>notebook"]
  node_augmentation["Image augmentation<br/>notebook"]
  node_vision_features["Feature extraction + ML<br/>notebook"]
  node_mnist[("MNIST arrays<br/>dataset<br/>[x_train.npy]")]
  node_cats_dogs[("Cats-vs-Dogs images<br/>dataset")]
  node_deep_vision["Cats-vs-Dogs training<br/>notebook<br/>[CatsVsDogs.ipynb]"]
  node_roof_images[("Roof imagery<br/>dataset")]
  node_segmentation["Segmentation<br/>notebook"]
  node_image_clustering["Image clustering<br/>notebook<br/>[Clustring.ipynb]"]
  node_suspicious_images[("Suspicious-image review<br/>output folder")]
end

subgraph group_capstone["Exam Analysis"]
  node_exam_dataset[("Three-class exam dataset")]
  node_exam_classification["Exam image classification<br/>notebook"]
  node_exam_clustering["Exam clustering<br/>notebook<br/>[clustring.ipynb]"]
  node_exam_results["Analysis results<br/>spreadsheet"]
end

node_jupyter{{"Jupyter + Python ML/CV<br/>runtime"}}

node_jupyter -->|"executes"| node_nlp_word2vec
node_nlp_word2vec -->|"vectors inform training"| node_nlp_build
node_nlp_build -->|"model used for prediction"| node_nlp_predict
node_jupyter -->|"executes"| node_sequence_types
node_sequence_data -->|"examples"| node_sequence_types
node_sequence_data -->|"training data"| node_rnn_learning
node_sequence_types -.->|"representation context"| node_rnn_learning
node_image_processing -->|"preprocessing foundation"| node_hsv_masks
node_image_processing -->|"preprocessing foundation"| node_edge_detection
node_image_processing -->|"preprocessing foundation"| node_augmentation
node_image_processing -.->|"prepared image concepts"| node_vision_features
node_mnist -->|"classification input"| node_vision_features
node_cats_dogs -->|"training images"| node_deep_vision
node_roof_images -->|"source imagery"| node_segmentation
node_roof_images -->|"source imagery"| node_image_clustering
node_segmentation -.->|"segmented inputs"| node_image_clustering
node_image_clustering -->|"persists review images"| node_suspicious_images
node_exam_dataset -->|"classification input"| node_exam_classification
node_exam_dataset -->|"clustering input"| node_exam_clustering
node_exam_classification -->|"writes results"| node_exam_results
node_exam_clustering -->|"writes results"| node_exam_results

click node_nlp_word2vec "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%201/word2vec.ipynb"
click node_nlp_build "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%202/1-BuildModel.ipynb"
click node_nlp_predict "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%202/4-Predict.ipynb"
click node_sequence_data "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/dataset.csv"
click node_sequence_types "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/00_sequence_types.ipynb"
click node_rnn_learning "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/03_rnn_vs_lstm.ipynb"
click node_image_processing "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/1-getting_started_main.ipynb"
click node_hsv_masks "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/3-hsv_mask_main.ipynb"
click node_edge_detection "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/5-edge_detection_main.ipynb"
click node_augmentation "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/10-data_Aug_main.ipynb"
click node_vision_features "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%205/completeExamnple.ipynb"
click node_mnist "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%205/mnist/x_train.npy"
click node_cats_dogs "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Session%205/dogs-vs-cats/Dogs"
click node_deep_vision "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%205/CatsVsDogs.ipynb"
click node_roof_images "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Session%206/dataset/roofless"
click node_segmentation "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%206/1-Segmentation.ipynb"
click node_image_clustering "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%206/Clustring.ipynb"
click node_suspicious_images "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Session%206/output_clusters/suspicious_images"
click node_exam_dataset "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Exam%20Notebooks/dataset/class1"
click node_exam_classification "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Exam%20Notebooks/imgclassification.ipynb"
click node_exam_clustering "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Exam%20Notebooks/clustring.ipynb"
click node_exam_results "https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Exam%20Notebooks/classification_clustering_results.xlsx"

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_nlp_word2vec,node_nlp_build,node_nlp_predict toneBlue
class node_sequence_data,node_sequence_types,node_rnn_learning toneAmber
class node_image_processing,node_hsv_masks,node_edge_detection,node_augmentation,node_vision_features,node_mnist,node_cats_dogs,node_deep_vision,node_roof_images,node_segmentation,node_image_clustering,node_suspicious_images toneMint
class node_exam_dataset,node_exam_classification,node_exam_clustering,node_exam_results toneRose
class node_jupyter toneNeutral
```

## Components

### Arabic NLP

- [Word2Vec preparation](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%201/word2vec.ipynb): notebook · `Session 1/word2vec.ipynb`
- [Text classifier training](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%202/1-BuildModel.ipynb): notebook · `Session 2/1-BuildModel.ipynb`
- [Text prediction](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%202/4-Predict.ipynb): notebook · `Session 2/4-Predict.ipynb`

### Sequence Models

- [Sequence CSV dataset](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/dataset.csv): dataset · `Session 3/dataset.csv`
- [Sequence representations](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/00_sequence_types.ipynb): notebook · `Session 3/00_sequence_types.ipynb`
- [RNN/LSTM comparison](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%203/03_rnn_vs_lstm.ipynb): notebook · `Session 3/03_rnn_vs_lstm.ipynb`

### Computer Vision

- [Image preprocessing](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/1-getting_started_main.ipynb): notebook pipeline · Conversion, masking, edges, transforms, filtering, and augmentation. · `Session 4/1-getting_started_main.ipynb`
- [HSV masks](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/3-hsv_mask_main.ipynb): notebook · `Session 4/3-hsv_mask_main.ipynb`
- [Edge detection](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/5-edge_detection_main.ipynb): notebook · `Session 4/5-edge_detection_main.ipynb`
- [Image augmentation](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%204/10-data_Aug_main.ipynb): notebook · `Session 4/10-data_Aug_main.ipynb`
- [Feature extraction + ML](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%205/completeExamnple.ipynb): notebook · Handcrafted features and conventional classification examples. · `Session 5/completeExamnple.ipynb`
- [MNIST arrays](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%205/mnist/x_train.npy): dataset · `Session 5/mnist/x_train.npy`
- [Cats-vs-Dogs images](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Session%205/dogs-vs-cats/Dogs): dataset · `Session 5/dogs-vs-cats/Dogs`
- [Cats-vs-Dogs training](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%205/CatsVsDogs.ipynb): notebook · `Session 5/CatsVsDogs.ipynb`
- [Roof imagery](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Session%206/dataset/roofless): dataset · `Session 6/dataset/roofless`
- [Segmentation](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%206/1-Segmentation.ipynb): notebook · `Session 6/1-Segmentation.ipynb`
- [Image clustering](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Session%206/Clustring.ipynb): notebook · `Session 6/Clustring.ipynb`
- [Suspicious-image review](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Session%206/output_clusters/suspicious_images): output folder · `Session 6/output_clusters/suspicious_images`

### Exam Analysis

- [Three-class exam dataset](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/tree/master/Exam%20Notebooks/dataset/class1): dataset · `Exam Notebooks/dataset/class1`
- [Exam image classification](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Exam%20Notebooks/imgclassification.ipynb): notebook · `Exam Notebooks/imgclassification.ipynb`
- [Exam clustering](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Exam%20Notebooks/clustring.ipynb): notebook · `Exam Notebooks/clustring.ipynb`
- [Analysis results](https://github.com/abdalmohaymenesmaeel/deeplearning-computervision/blob/master/Exam%20Notebooks/classification_clustering_results.xlsx): spreadsheet · Durable classification and clustering review artifact. · `Exam Notebooks/classification_clustering_results.xlsx`

### Other components

- **Jupyter + Python ML/CV**: runtime · Notebook runtime for all sessions.

## Connections

- Jupyter + Python ML/CV → Word2Vec preparation: executes
- Word2Vec preparation → Text classifier training: vectors inform training
- Text classifier training → Text prediction: model used for prediction
- Jupyter + Python ML/CV → Sequence representations: executes
- Sequence CSV dataset → Sequence representations: examples
- Sequence CSV dataset → RNN/LSTM comparison: training data
- Sequence representations → RNN/LSTM comparison: representation context
- Image preprocessing → HSV masks: preprocessing foundation
- Image preprocessing → Edge detection: preprocessing foundation
- Image preprocessing → Image augmentation: preprocessing foundation
- Image preprocessing → Feature extraction + ML: prepared image concepts
- MNIST arrays → Feature extraction + ML: classification input
- Cats-vs-Dogs images → Cats-vs-Dogs training: training images
- Roof imagery → Segmentation: source imagery
- Roof imagery → Image clustering: source imagery
- Segmentation → Image clustering: segmented inputs
- Image clustering → Suspicious-image review: persists review images
- Three-class exam dataset → Exam image classification: classification input
- Three-class exam dataset → Exam clustering: clustering input
- Exam image classification → Analysis results: writes results
- Exam clustering → Analysis results: writes results
