# thrivikram1039/pedestrian_detection_using_hog_feature_extraction architecture

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

- Interactive diagram: https://gitdiagram.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction
- Repository: https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction

## Overview

This is a small image-based pedestrian detection application. Its documented workflow loads an image, extracts HOG features, applies an SVM detector, removes overlapping detections with NMS, and displays bounding boxes. Confidence filtering and low-light testing are also documented capabilities. The implementation file was not included in the sampled source, so workflow edges rely on the README; the tree names the script `pedestrain_test.py`, while the README uses `pedestrian_test.py`.

Main entry points: [`pedestrain_test.py`](https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py) (Image Loading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Image Input"]
  node_image["Image Loading<br/>[pedestrain_test.py]"]
end

subgraph group_detection["Detection"]
  node_hog["HOG Extraction<br/>[pedestrain_test.py]"]
  node_svm["SVM Detection<br/>[pedestrain_test.py]"]
  node_confidence["Confidence Filter<br/>[pedestrain_test.py]"]
  node_nms["Non-Max Suppression<br/>[pedestrain_test.py]"]
end

subgraph group_results["Results"]
  node_display["Box Visualization<br/>[pedestrain_test.py]"]
end

node_user(("User"))

node_user -->|"runs detection"| node_image
node_image -->|"extracts features"| node_hog
node_hog -->|"supplies features"| node_svm
node_svm -->|"filters scores"| node_confidence
node_confidence -->|"passes boxes"| node_nms
node_nms -->|"removes overlaps"| node_display

click node_image "https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py"
click node_hog "https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py"
click node_svm "https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py"
click node_confidence "https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py"
click node_nms "https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py"
click node_display "https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py"

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,node_user toneBlue
class node_hog,node_svm,node_confidence,node_nms toneAmber
class node_display toneMint
```

## Components

### Image Input

- [Image Loading](https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py): `pedestrain_test.py`

### Detection

- [HOG Extraction](https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py): `pedestrain_test.py`
- [SVM Detection](https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py): `pedestrain_test.py`
- [Confidence Filter](https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py): `pedestrain_test.py`
- [Non-Max Suppression](https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py): `pedestrain_test.py`

### Results

- [Box Visualization](https://github.com/thrivikram1039/pedestrian_detection_using_hog_feature_extraction/blob/main/pedestrain_test.py): `pedestrain_test.py`

### Other components

- **User**

## Connections

- User → Image Loading: runs detection (evidence: `README.md`)
- Image Loading → HOG Extraction: extracts features (evidence: `README.md`)
- HOG Extraction → SVM Detection: supplies features (evidence: `README.md`)
- SVM Detection → Confidence Filter: filters scores (evidence: `README.md`)
- Confidence Filter → Non-Max Suppression: passes boxes (evidence: `README.md`)
- Non-Max Suppression → Box Visualization: removes overlaps (evidence: `README.md`)
