# aarohisingla/speed-detection-of-vehicles architecture

> Architecture diagram of the GitHub repository aarohisingla/speed-detection-of-vehicles, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aarohisingla/speed-detection-of-vehicles
- Repository: https://github.com/aarohisingla/speed-detection-of-vehicles

## Overview

This repository is a small vehicle-speed-detection project. The available code implements center-point-based object ID tracking; the README points to a video for understanding the code, but does not describe the detection or speed-calculation workflow. The notebook and video artifacts suggest the broader workflow, but their contents were not sampled, so those connections are shown as unverified rather than asserted.

Main entry points: [`speed_estimate.ipynb`](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/speed_estimate.ipynb) (Speed Estimation), [`highway.mp4`](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/highway.mp4) (Vehicle Footage), [`highway_mini.mp4`](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/highway_mini.mp4) (Mini Footage), [`output.avi`](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/output.avi) (Output Video)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Speed Detection"]
  node_footage["Vehicle Footage<br/>[highway.mp4]"]
  node_mini_footage["Mini Footage<br/>[highway_mini.mp4]"]
  node_speed_estimation["Speed Estimation"]
  node_output_video["Output Video<br/>[output.avi]"]
end

subgraph group_tracking["Object Tracking"]
  node_tracker["Center Tracker<br/>[tracker.py]"]
end

node_footage -.->|"provides input"| node_speed_estimation
node_mini_footage -.->|"provides input"| node_speed_estimation
node_speed_estimation -.->|"uses tracking"| node_tracker
node_speed_estimation -.->|"produces video"| node_output_video

click node_footage "https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/highway.mp4"
click node_mini_footage "https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/highway_mini.mp4"
click node_speed_estimation "https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/speed_estimate.ipynb"
click node_tracker "https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/tracker.py"
click node_output_video "https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/output.avi"

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_footage,node_mini_footage,node_speed_estimation,node_output_video toneBlue
class node_tracker toneAmber
```

## Components

### Speed Detection

- [Vehicle Footage](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/highway.mp4): `highway.mp4`
- [Mini Footage](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/highway_mini.mp4): `highway_mini.mp4`
- [Speed Estimation](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/speed_estimate.ipynb): `speed_estimate.ipynb`
- [Output Video](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/output.avi): `output.avi`

### Object Tracking

- [Center Tracker](https://github.com/aarohisingla/speed-detection-of-vehicles/blob/main/tracker.py): `tracker.py`

## Connections

- Vehicle Footage → Speed Estimation: provides input
- Mini Footage → Speed Estimation: provides input
- Speed Estimation → Center Tracker: uses tracking
- Speed Estimation → Output Video: produces video
