# bhaskrr/traffic-sign-detection-using-yolov11 architecture

> Architecture diagram of the GitHub repository bhaskrr/traffic-sign-detection-using-yolov11, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhaskrr/traffic-sign-detection-using-yolov11
- Repository: https://github.com/bhaskrr/traffic-sign-detection-using-yolov11

## Overview

This repository is a small YOLOv11 traffic-sign detection demo with separate image and video workflows. Users launch either script; each loads the fine-tuned model, runs detection, annotates results, and displays them. The video workflow reads the bundled traffic-sign clip, while image input is configured in the script but its referenced sample image is absent from the tree. Training is documented, but its notebook and dataset are not included, so only the supplied model artifact is shown.

Main entry points: [`process_video.py`](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/process_video.py) (Video workflow), [`process_image.py`](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/process_image.py) (Image workflow), [`model/traffic_sign_detector.pt`](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/model/traffic_sign_detector.pt) (Fine-tuned weights), [`data/input/traffic_signs.mp4`](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/data/input/traffic_signs.mp4) (Traffic-sign clip)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_image["Image detection"]
  node_image_runner["Image workflow<br/>[process_image.py]"]
end

subgraph group_video["Video detection"]
  node_video_runner["Video workflow<br/>[process_video.py]"]
  node_video_input["Traffic-sign clip<br/>[traffic_signs.mp4]"]
end

subgraph group_model["Detection model"]
  node_weights["Fine-tuned weights"]
end

node_user(("User"))
node_display["OpenCV display"]

node_user -->|"runs"| node_image_runner
node_user -->|"runs"| node_video_runner
node_image_runner -->|"loads"| node_weights
node_video_runner -->|"loads"| node_weights
node_video_runner -->|"reads"| node_video_input
node_image_runner -->|"shows annotations"| node_display
node_video_runner -->|"shows frames"| node_display

click node_image_runner "https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/process_image.py"
click node_video_runner "https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/process_video.py"
click node_weights "https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/model/traffic_sign_detector.pt"
click node_video_input "https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/data/input/traffic_signs.mp4"

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_runner,node_user toneBlue
class node_video_runner,node_video_input toneAmber
class node_weights toneMint
class node_display toneIndigo
```

## Components

### Image detection

- [Image workflow](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/process_image.py): `process_image.py`

### Video detection

- [Video workflow](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/process_video.py): `process_video.py`
- [Traffic-sign clip](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/data/input/traffic_signs.mp4): `data/input/traffic_signs.mp4`

### Detection model

- [Fine-tuned weights](https://github.com/bhaskrr/traffic-sign-detection-using-yolov11/blob/main/model/traffic_sign_detector.pt): `model/traffic_sign_detector.pt`

### Other components

- **User**
- **OpenCV display**

## Connections

- User → Image workflow: runs (evidence: `README.md`)
- User → Video workflow: runs (evidence: `README.md`)
- Image workflow → Fine-tuned weights: loads (evidence: `process_image.py`)
- Video workflow → Fine-tuned weights: loads (evidence: `process_video.py`)
- Video workflow → Traffic-sign clip: reads (evidence: `process_video.py`)
- Image workflow → OpenCV display: shows annotations (evidence: `process_image.py`)
- Video workflow → OpenCV display: shows frames (evidence: `process_video.py`)
