Project Directory Map

This document serves as the “Atlas” for the Drowsiness Detection project. It maps every file in the source code to its purpose and its corresponding documentation page.

Source Code Architecture

The project is organized into a “Pipeline” structure: Data Training Inference.

graph TD
    Data[data.yaml] -->|Defines| Train[train_yolo.py]
    Train -->|Produces| Model[models/*.pt]
    Model -->|Powers| Infer[drowsiness_detection.py]
    Infer -->|Triggers| Alert[Alerts: Sound/Notification]
    Req[requirements.txt] -->|Supports| All[All Scripts]

Detailed File Index

File / FolderTechnical RoleBeginner’s ExplanationDocumentation Link
data.yamlConfigurationTells the AI where the images are.dataset
train_yolo.pyTrainerThe script that teaches the AI.model-training
drowsiness_detection.pyEngineThe real-time monitoring script.detection-system
models/Weight StorageStores the “learned” AI brain (.pt files).architecture
requirements.txtManifestList of all needed software libraries.environment
runs/ArtifactsStores training logs and accuracy charts.model-training
README.mdOverviewQuick-start guide.index

Documentation Hierarchy

The documentation is structured to take you from “Curious” to “Expert”:

  1. The Big Picture index.md
  2. The Setup configuration/environment.md
  3. The AI Logic models/architecture.md training/dataset.md training/model-training.md
  4. The Real-time Engine inference/detection-system.md inference/alert-mechanism.md
  5. Fine Tuning configuration/hyperparameters.md