# sauravraghuvanshi/udacity-computer-vision-nanodegree-program architecture

> Architecture diagram of the GitHub repository sauravraghuvanshi/udacity-computer-vision-nanodegree-program, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program
- Repository: https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program

## Overview

##### Project type and purpose
- This is an educational, multi-module repository for a Computer Vision Nanodegree.
- It contains:
- A large set of exercises (image representation, CNNs, YOLO, LSTMs, attention, SLAM, etc.)
- Three self-contained projects:
– Project 1: Facial keypoint detection (Haar cascade + CNN)
– Project 2: Image captioning (CNN + RNN on COCO dataset)
– Project 3: 2D SLAM (robot localization and mapping)

##### File structure
- Top-level folders:
- exercises/… (each chapter in its own subfolder, with .ipynb, helpers.py, images, data)
- localization_exercises/… (SLAM and Kalman filter notebooks + helper scripts)
- project_1_facial_keypoints/…
- project_2_image_captioning_project/…
- project_3_landmark_detection/…
- global assets: images/, LICENSE, README.md
- Configuration and dependency files: requirements.txt in root and in each project dir
- External dependencies appear via COCO API (Lua/Matlab/Python subfolders) and OpenCV Haar cascades

##### README for additional insights
- High-level description of each project’s goal, data sources, and model architecture

##### Be detailed but not overwhelming
- At the top level, show the repo’s major modules (Exercises vs. Projects)
- Call out external dependencies and outputs

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Top-level Modules
    subgraph "Module A: Exercises"
        Exe["Exercises"]:::exercises
    end
    subgraph "Module B: Localization Exercises"
        Loc["Localization Exercises"]:::localization
    end
    subgraph "Module C: Project 1 (Facial Keypoint Detection)"
        P1DataLoad["Data Loader"]:::project1
        P1Haar["Haar Cascade Detectors"]:::project1
        P1Model["CNN Keypoint Model"]:::project1
        P1Saved["Saved Models"]:::project1
        P1DataLoad -->|loads images| P1Haar
        P1Haar -->|detect faces| P1Model
        P1Model -->|predict keypoints| P1Saved
    end
    subgraph "Module D: Project 2 (Image Captioning)"
        P2DataLoad["Data Loader"]:::project2
        P2COCO["COCO API Bindings"]:::project2
        P2CNN["CNN Feature Extractor"]:::project2
        P2Vocab["Vocabulary Module"]:::project2
        P2Model["CNN-RNN Model"]:::project2
        P2DataLoad -->|fetch COCO data| P2COCO
        P2COCO -->|extract features| P2CNN
        P2CNN -->|encode words| P2Vocab
        P2Vocab -->|generate captions| P2Model
    end
    subgraph "Module E: Project 3 (2D SLAM / Landmark Detection)"
        P3Robot["Robot Class"]:::project3
        P3Help["SLAM Helper Functions"]:::project3
        P3Sense["Sense & Predict"]:::project3
        P3Solve["SLAM Solver"]:::project3
        P3Output["Map & Pose Output"]:::project3
        P3Robot -->|motion & sensing| P3Sense
        P3Help -->|compute Ω, Ξ| P3Sense
        P3Sense -->|linear solve| P3Solve
        P3Solve -->|produce map| P3Output
    end
    subgraph "Shared Resources"
        SharedImages["Global Images Folder"]:::shared
        Req["Root requirements.txt"]:::shared
        Readme["Repository README"]:::shared
    end

    %% Data Flow from Shared 
    SharedImages -->|image data| P1DataLoad
    SharedImages -->|image data| P2DataLoad
    SharedImages -->|environment maps| P3Robot
    Req --> Exe
    Req --> Loc
    Req --> P1DataLoad
    Req --> P2DataLoad
    Req --> P3Robot
    Readme --> Exe
    Readme --> P1DataLoad
    Readme --> P2DataLoad
    Readme --> P3Robot

    %% Click Events
    click Exe "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/tree/master/exercises/"
    click Loc "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/tree/master/localization_exercises/"
    click P1DataLoad "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_1_facial_keypoints/data_load.py"
    click P1Haar "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/tree/master/project_1_facial_keypoints/detector_architectures/"
    click P1Model "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_1_facial_keypoints/models.py"
    click P1Saved "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/tree/master/project_1_facial_keypoints/saved_models/"
    click P2 "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/tree/master/project_2_image_captioning_project/"
    click P2COCO "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/tree/master/project_2_image_captioning_project/cocoapi/"
    click P2DataLoad "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_2_image_captioning_project/data_loader.py"
    click P2Model "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_2_image_captioning_project/model.py"
    click P2Vocab "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_2_image_captioning_project/vocabulary.py"
    click P2CNN "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_2_image_captioning_project/CNN_model_COCO_Dataset.py"
    click P3Robot "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_3_landmark_detection/robot_class.py"
    click P3Help "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/project_3_landmark_detection/helpers.py"
    click SharedImages "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/tree/master/images/"
    click Req "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/requirements.txt"
    click Readme "https://github.com/sauravraghuvanshi/udacity-computer-vision-nanodegree-program/blob/master/README.md"

    %% Styles
    classDef exercises fill:#FFDDCC,stroke:#333,stroke-width:1px
    classDef localization fill:#DDEEFF,stroke:#333,stroke-width:1px
    classDef project1 fill:#CCFFCC,stroke:#333,stroke-width:1px
    classDef project2 fill:#CCEEFF,stroke:#333,stroke-width:1px
    classDef project3 fill:#FFCCEE,stroke:#333,stroke-width:1px
    classDef shared fill:#EEEEEE,stroke:#333,stroke-width:1px
```
